c++ - Is it possible to get GCC 3.4.6 to compile UTF-8 with BOM source files? -


I have a C ++ application that uses the Unicode string in it, I have the solution ---- Visual Studio 2012 Had used. ------ Window 7

The file is saved in UL-8 (Bit Order Marker) in UOT-8. When I run the same file in Linux, I get the following error: - Error: Error in Program 1: '239': Error: Hobo '\ 187' in Program 1: Error: Hobby '\ 191' in the program < / P>

I have found that GCC will not support BOM in C ++ file. If I remove BOM by file error then it will be resolved. Is there a way by which I can compile my application in which the files have been saved in UOTF-8, which is kept in BOM?

One more thing, I am compiling applications in "Red Hat Enterprise Linux 4 Edition", where GCC version 3.4.6.

Please help me in this regard.

Thanks & amp; Regards Development

@GCC: You can use

  -lstdc ++   

Compiler option to compile UK-8 BOM files

(I'm adding it here , Because this thread is a high rated result on Google about this topic)

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -