In recent years, the radio over free space optical (RoFSO) communication system has become a popular research topic in the field of 5G communication. Atmospheric turbulence typically degrades the performance of RoFSO system. Multiple input multiple output, aperture averaging, error correcting codes, and robust modulation are common mitigation techniques used to reduce the effects of atmospheric turbulence. In this paper, a Reed Solomon (RS) and Bose-Chaudhuri-Hocquenghem (BCH) coded binary shift keying (BPSK) orthogonal frequency division multiplexing (OFDM) based RoFSO system is proposed for 5G applications in smart cities. The average bit error rate (ABER) of the proposed system is investigated for various turbulence, weather, and pointing error cases. The ABER results for uncoded, BCH, and RS coded cases are compared. The results show that the BCH coded system outperforms the RS coded and uncoded systems in all turbulence regimes, weather conditions, and pointing error scenarios.