Boost logo

Boost Users :

Subject: [Boost-users] Starting with boost
From: Ronny Herzog (herzog_at_[hidden])
Date: 2012-07-18 07:12:34


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-linking>
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-your-program-to-a-boost-library)
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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net