Linking boost libraries under visual c++ 2008

Hello. I compiled boost successfully for windows xp with visual c++ 9 toolchain. But when I try to link the regex example, visual studio looks for 'libboost-regex...' but the file produced for that file is 'boost-regex...' without the lib prefix. I don't know if this is a boost problem or a visual studio configuration problem. Anyway, do you know how can I solve this problem and link libraries with visual studio? I googled a lot but found no answer. Thanks in advance.

Hi,
But when I try to link the regex example, visual studio looks for 'libboost-regex...' but the file produced for that file is 'boost-regex...' without the lib prefix. I don't know if this is a boost problem or a visual studio configuration problem. Anyway, do you know how can I solve this problem and link libraries with visual studio?
The files with "lib" prefix are static libraries whereas the ones without "lib" are used for dynamic linking (DLLs). First decide, what you want to use, then build the appropriate files. with bjam use the option link=static or link=shared. Have a look at http://www.codeproject.com/KB/tips/Building_boost_libraries.aspx That may help you. Regards, Rainer

Rainer Thaden schrieb:
Hi,
But when I try to link the regex example, visual studio looks for 'libboost-regex...' but the file produced for that file is 'boost-regex...' without the lib prefix. I don't know if this is a boost problem or a visual studio configuration problem. Anyway, do you know how can I solve this problem and link libraries with visual studio?
The files with "lib" prefix are static libraries whereas the ones without "lib" are used for dynamic linking (DLLs). First decide, what you want to use, then build the appropriate files. with bjam use the option link=static or link=shared.
Hi, you could also use the bjam option --build-type=complete which worked pretty good for me using vs studio express 2008. With that option all possible dll's and static libraries should be built. Andreas
Have a look at http://www.codeproject.com/KB/tips/Building_boost_libraries.aspx That may help you.
Regards,
Rainer _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Hi, you could also use the bjam option --build-type=complete which worked pretty good for me using vs studio express 2008. With that option all possible dll's and static libraries should be built.
Andreas
Have a look at http://www.codeproject.com/KB/tips/Building_boost_libraries.aspx That may help you.
Regards,
Rainer _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Thanks for all. I'll try when I have some time. _______________________________________________
Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

2008/4/7, Germán Diago
Hi, you could also use the bjam option --build-type=complete which worked pretty good for me using vs studio express 2008. With that option all possible dll's and static libraries should be built.
Andreas
Have a look at http://www.codeproject.com/KB/tips/Building_boost_libraries.aspx That may help you.
Regards,
Rainer _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
It works great! Thanks for you time.
_______________________________________________
Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

The files with "lib" prefix are static libraries whereas the ones without "lib" are used for dynamic linking (DLLs). First decide, what you want to use, then build the appropriate files. with bjam use the option link=static or link=shared.
Have a look at http://www.codeproject.com/KB/tips/Building_boost_libraries.aspx That may help you.
Regards,
Rainer _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I compiled and linked corectly a build. But now, it tells me it doesn't find the dll when it runs. Is this a similar problem to that of LD_LIBRARY_PATH in linux? And, how can I build several targets at once? Because I don't have debug versions of my libraries. Can I do like this? bjam --toolset=msvc variant=release variant=debug Thanks for your time

Germán Diago wrote:
The files with "lib" prefix are static libraries whereas the ones without "lib" are used for dynamic linking (DLLs). First decide, what you want to use, then build the appropriate files. with bjam use the option link=static or link=shared.
Have a look at http://www.codeproject.com/KB/tips/Building_boost_libraries.aspx That may help you.
Regards,
Rainer _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org mailto:Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I compiled and linked corectly a build. But now, it tells me it doesn't find the dll when it runs. Is this a similar problem to that of LD_LIBRARY_PATH in linux? And, how can I build several targets at once? Because I don't have debug versions of my libraries. Can I do like this? bjam --toolset=msvc variant=release variant=debug
Hi Germán, If your DLLs are being created correctly, then I think you should check to make sure the DLLs exist in the same directory as your executable, or that they are in one of the directories accessible system-wide (e.g. C:\Windows\System or C:\Windows\System32). Usually it is simple enough to just copy the DLLs into your executable directory. Regards, Markus.

Germán Diago
Hello. I compiled boost successfully for windows xp with visual c++ 9
I don't know if this is a boost problem or a visual studio configuration
toolchain.But when I try to link the regex example, visual studio looks for 'libboost-regex...' but the file produced for that file is 'boost- regex...' without the lib prefix. problem.Anyway, do you know how can I solve this problem and link libraries with visual studio?I googled a lot but found no answer. Yes look at my article on codeproject. If it is linking with lib variants, you don't use the auto (dynamic) linking, which is also described there.
participants (5)
-
Andreas Ries
-
gast128
-
Germán Diago
-
Markus Svilans
-
Rainer Thaden