Compatible question with STLPORT
Dear sir, When I include STLPORT in VS 2005 as follows: VC++ Directories -> Include files ->STLPORT-5.1.2\stlport This "Options" is set in the first line. However there's compiling errors: boost\include\boost-1_33_1\boost\config\auto_link.hpp(175) : fatal error C1189: #error : "Build options aren't compatible with pre-built libraries". When I delete STLPORT-5.1.2 from "Options", there's no compiling error. But why? Thanks.
yunxig wrote:
Dear sir, When I include STLPORT in VS 2005 as follows: VC++ Directories -> Include files ->STLPORT-5.1.2\stlport This "Options" is set in the first line.
However there's compiling errors: boost\include\boost-1_33_1\boost\config\auto_link.hpp(175) : fatal error C1189: #error : "Build options aren't compatible with pre-built libraries".
When I delete STLPORT-5.1.2 from "Options", there's no compiling error. But why?
The error indicates that the project settings are different from those used to build the Boost libraries during installation - typically you are doing a debug build without __STL_DEBUG defined, or a release build with __STL_DEBUG defined (the installed debug lib's would have been built with this define set and need it to be set in your application's debug builds in order to ensure binary compatibility with the lib's you will be linking against). HTH, John.
John Maddock
yunxig wrote:
Dear sir, When I include STLPORT in VS 2005 as follows: VC++ Directories -> Include files ->STLPORT-5.1.2\stlport This "Options" is set in the first line.
However there's compiling errors: boost\include\boost-1_33_1\boost\config\auto_link.hpp(175) : fatal error C1189: #error : "Build options aren't compatible with pre-built libraries".
When I delete STLPORT-5.1.2 from "Options", there's no compiling error. But why?
The error indicates that the project settings are different from those used to build the Boost libraries during installation - typically you are doing a debug build without __STL_DEBUG defined, or a release build with __STL_DEBUG defined (the installed debug lib's would have been built with this define set and need it to be set in your application's debug builds in order to ensure binary compatibility with the lib's you will be linking against).
HTH, John.
Thank you very much. Yes, I defined __STL_DEBUG for project->properties->Preprocessor, there's no compiling errors. But there's Linking errors: LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc80-mt-gdp- 1_33_1.lib' In fact, there's no such lib in BOOST lib. I'm looking for the answer.
yunxig wrote:
Thank you very much. Yes, I defined __STL_DEBUG for project->properties->Preprocessor, there's no compiling errors. But there's Linking errors: LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc80-mt-gdp- 1_33_1.lib'
In fact, there's no such lib in BOOST lib. I'm looking for the answer.
Blast, we don't have an official build toolset for VC8+STLport in 1.33.1 :-( If you want to hack one up: in tools/build/v1 copy vc-7_1-stlport-tools.jam and call it vc-8_0-stlport-tools.jam, then replace all occurances of "71" in the file with "80", and use this as the build/install toolset as described in the getting started guide: http://www.boost.org/more/getting_started.html Alternatively you could probably figure out how to build the thread lib in your favorite IDE. HTH, John.
participants (2)
-
John Maddock
-
yunxig