Dear all, I want to start using boost and tried the steps provided in http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html. http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#auto-... My system is Windows 7 with MS VC 2008 and I would like to use boost from the command line. I run bootstrap.bat and bjam.exe to build all libraries. However, when I want to compile the example file (http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#link-...) which uses the 'regex' library it does not find it. Command: c:\Users\Duke\My_Projects\boost_python>cl /EHsc /I c:\boost_1_50_0 testBoost.cpp /link /LIBPATH:C:\boost_1_50_0\libs\ Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. testBoost.cpp Microsoft (R) Incremental Linker Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. /out:testBoost.exe /LIBPATH:C:\boost_1_50_0\libs\ testBoost.obj LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc90-mt-s-1_50.lib' c:\Users\Duke\My_Projects\boost_python> Why does it not find the library? Do I have to set a variable for the library path for MSVC 2008? How? Any help is very much appreciated! Thanks, Ronny
On 18.7.2012 14:12, Ronny Herzog wrote:
Dear all,
I want to start using boost and tried the steps provided in http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html. http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#auto-... My system is Windows 7 with MS VC 2008 and I would like to use boost from the command line. I run bootstrap.bat and bjam.exe to build all libraries. However, when I want to compile the example file (http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#link-...) which uses the 'regex' library it does not find it.
Hi, are you sure that you're using the correct library path? If you followed the instructions properly (or used defaults), the compiled libs are placed under stage\lib, not under libs\ (that's where the source files are). -- Pekka
Hi Ronny, I believe the clue is in the library name - the -mt- bit. It is building a version of the library that uses the multi-threaded runtime libraries. Use the information on this page to build the version of the libraries that conforms to the version of your project. http://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html Or set your project to compile with the ;/MT switch. (Runtime Library property under the C++/Code Generation project setting) Hope it helps Hano On Wed, Jul 18, 2012 at 3:26 PM, Pekka Seppänen < pekka.seppanen@capricode.com> wrote:
On 18.7.2012 14:12, Ronny Herzog wrote:
Dear all,
I want to start using boost and tried the steps provided in http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html. < http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#auto-...
My system is Windows 7 with MS VC 2008 and I would like to use boost from the command line. I run bootstrap.bat and bjam.exe to build all libraries. However, when I want to compile the example file ( http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#link-... ) which uses the 'regex' library it does not find it.
Hi,
are you sure that you're using the correct library path? If you followed the instructions properly (or used defaults), the compiled libs are placed under stage\lib, not under libs\ (that's where the source files are).
-- Pekka
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Dear Pekka, thanks for the hint. It was under stage\lib. Ronny Am 7/18/2012 4:26 PM, schrieb Pekka Seppänen:
On 18.7.2012 14:12, Ronny Herzog wrote:
Dear all,
I want to start using boost and tried the steps provided in http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html. http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#auto-... My system is Windows 7 with MS VC 2008 and I would like to use boost from the command line. I run bootstrap.bat and bjam.exe to build all libraries. However, when I want to compile the example file (http://www.boost.org/doc/libs/1_43_0/more/getting_started/windows.html#link-...) which uses the 'regex' library it does not find it.
Hi,
are you sure that you're using the correct library path? If you followed the instructions properly (or used defaults), the compiled libs are placed under stage\lib, not under libs\ (that's where the source files are).
-- Pekka
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
hano botha
-
Pekka Seppänen
-
Ronny Herzog