mcsergiu
28th April 2010, 10:37
Hi guys,
I need help from you. I used gmake -macx filename.pro command to generate the .xcodeproj file. After opening this file in Xcode and compiling the C++ sources files, I've got thousands of errors related to C/C++ standard code and Qt included headers.
I have the impression that the code is considered by xcode as C code not C++ since the errors are related to the string.h interpretation, the public class statement is not known, "using namespace" statements not known , etc.
If generating the Makefile and compiling the source code with make command from command line, everything works fine.
Could you please tell me what should I add to the pro file (preferably) or in XCode to get rid of those errors related to C/C++ standard code?
Please note that if creating a new project in XCode, there I have the possibility to specify the project type (i.e C++ standard application) and the code added there is compiled well.
I have the above mentioned problem only with the xcodeproj files generated with qmake.
Thanks in advance for your help!
I need help from you. I used gmake -macx filename.pro command to generate the .xcodeproj file. After opening this file in Xcode and compiling the C++ sources files, I've got thousands of errors related to C/C++ standard code and Qt included headers.
I have the impression that the code is considered by xcode as C code not C++ since the errors are related to the string.h interpretation, the public class statement is not known, "using namespace" statements not known , etc.
If generating the Makefile and compiling the source code with make command from command line, everything works fine.
Could you please tell me what should I add to the pro file (preferably) or in XCode to get rid of those errors related to C/C++ standard code?
Please note that if creating a new project in XCode, there I have the possibility to specify the project type (i.e C++ standard application) and the code added there is compiled well.
I have the above mentioned problem only with the xcodeproj files generated with qmake.
Thanks in advance for your help!