I have a project which contains Geos and Proj inside it. Before Xcode 5 I compiled them with LLVM GCC 4.2 compiler, but in Xcode 5 DP I get an error about unsupported compiler. Choosing another compiler get to compilation errors depends on syntax. How can I fix this trouble?
A) Stop using Xcode 5
or
B) Fix the errors in your code
I know you won't like that answer but Apple has stated their displeasure for GCC on many occasions and declared it a deprecated technology.
Change your compiler for C/C++/Objective-C:
Xcode > Target > Build Settings > Build Options > Compiler for C/C++/Objective-C
Select Default compiler (Apple LLVM x.y)
If you are compiling from the command line (like I do when building GEOS and proj4) The following command will find the correct compiler for you and run it.
xcrun --sdk iphoneos clang
Or use iphonesimulator instead of iphoneos if you want to build for the sim.
A) Stop using Xcode 5
or
B) Fix the errors in your code
I know you won't like that answer but Apple has stated their displeasure for GCC on many occasions and declared it a deprecated technology.
© 2022 - 2024 — McMap. All rights reserved.