Sunday, December 1, 2013

In xcode4 environments encountered problems help boost libraries

Initial contact with the development of IOS platform, think after XCode 4 environments boost this open source library, I use bjam good compilation in XCode new project, the build setting which added boost directory to the header search paths inside, but I'm in the code inside When prompted to use the # include this header file contains boost not find boost / array.hpp, if replaced by # include "boost / array.hpp" you can find, but there array.hpp Use # include <> contains additional boost library header files is not found. I think I may also need other settings, as new to the XCode development tools are not familiar with, I do not know how to solve. My system is mac Snow Leopard, XCode is version 4.0.
Reply:
objc, c + + source code needs to be mixed by the file extension of. m instead. mm
Reply:
Did all the boost library files have changed *. Mm
Impossible ...
Reply:
reference to the second floor of the reply:
Did all the boost library files have changed * mm
.No way ...

That of course will not only boost referenced in your class. M where the. M instead. Mm
Reply:
cited a floor reply:
objc, c + + source code needs to be mixed by the file suffix m to mm


I did not use mixed case, we found the need to boost the library copy to / usr / include corresponding sdk directory below the job, but this method looks only for mac os project effective for ios can not find the items or tips to, and whether it is with <> or contain "" contains can not find my copy to Platforms directory under the installation directory xcode corresponding SDK, the SDK is not clear that the corresponding IOS platform SDK.
Reply:
1 with the boost it certainly objc + + mixed
2 No copy boost library, simply add the path where the boost in the search path to the header file
Reply:
Referenced header files and compile it out. A static library, the project changed to objective-c + + compiler mode can be.
Reply:
references 6th Floor reply:.
references it out of the header file and compile a static library, the project changed to objective-c + + compiler mode to .

Header file that references a problem, hey, first knot posted.

No comments:

Post a Comment