Discussion:
libXXX
Lars Schouw
2008-01-10 13:56:19 UTC
Permalink
I am having a problems with the boost libs I have build the names does not start with lib

When I build boost using bjam "-sTOOLS=vc9" install
I got a bunch of .lib files in c:\boost\lib e.g. boost_thread-vc90-mt-1_35.lib
but when I build my library against tghis if fails to link since it needs a file libboost_thread-vc90-mt-1_35.lib

What am I doing wrong?

I am using boost from subversion, Windows Vista and Visual Studio 2008

Thanks in advance
Lars




____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
David R. Palmer
2008-01-10 18:19:27 UTC
Permalink
Same issues, I can nspeak to it over the weekend if you would like.
Post by Lars Schouw
I am having a problems with the boost libs I have build the names does not start with lib
When I build boost using bjam "-sTOOLS=vc9" install
I got a bunch of .lib files in c:\boost\lib e.g.
boost_thread-vc90-mt-1_35.lib
but when I build my library against tghis if fails to link since it needs
a file libboost_thread-vc90-mt-1_35.lib
What am I doing wrong?
I am using boost from subversion, Windows Vista and Visual Studio 2008
Thanks in advance
Lars
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
Boost-users mailing list
http://lists.boost.org/mailman/listinfo.cgi/boost-users
David Randolph Palmer
2008-01-13 00:45:17 UTC
Permalink
I was able to build everything, but now get link errors, anyone know the
answer?

Dave

Build Log Rebuild started: Project: example, Configuration: Debug|Win32
Command Lines Creating temporary file "c:\Users\dad\Documents\Visual
Studio 2008\Projects\example\example\Debug\RSP00001227165100.rsp" with
contents
[
/Od /I "C:\Program Files\boost\boost_1_34_1" /D "WIN32" /D "_DEBUG" /D
"_UNICODE" /D "UNICODE" /FD /EHa /MDd /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3
/c /Zi /clr /TP /FU
"c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll" /FU
"c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" /FU
"c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.XML.dll"

".\example.cpp"

".\AssemblyInfo.cpp"
]
Creating command line "cl.exe @"c:\Users\dad\Documents\Visual Studio
2008\Projects\example\example\Debug\RSP00001227165100.rsp" /nologo
/errorReport:prompt"
Creating temporary file "c:\Users\dad\Documents\Visual Studio
2008\Projects\example\example\Debug\RSP00001327165100.rsp" with contents
[
/Od /I "C:\Program Files\boost\boost_1_34_1" /D "WIN32" /D "_DEBUG" /D
"_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yc"stdafx.h" /Fp"Debug\example.pch"
/Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /c /Zi /clr /TP /FU
"c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll" /FU
"c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" /FU
"c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.XML.dll"

".\stdafx.cpp"
]
Creating command line "cl.exe @"c:\Users\dad\Documents\Visual Studio
2008\Projects\example\example\Debug\RSP00001327165100.rsp" /nologo
/errorReport:prompt"
Creating command line "rc.exe /d "_UNICODE" /d "UNICODE" /fo"Debug/app.res"
".\app.rc""
Creating temporary file "c:\Users\dad\Documents\Visual Studio
2008\Projects\example\example\Debug\RSP00001427165100.rsp" with contents
[
/OUT:"C:\Users\dad\Documents\Visual Studio
2008\Projects\example\Debug\example.exe" /INCREMENTAL /LIBPATH:"C:\Program
Files\boost\boost_1_34_1\lib" /LIBPATH:"C:\Program
Files\boost\boost_1_34_1\lib\\" /MANIFEST
/MANIFESTFILE:"Debug\example.exe.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /ASSEMBLYDEBUG
/PDB:"C:\Users\dad\Documents\Visual Studio
2008\Projects\example\Debug\example.pdb" /DYNAMICBASE /FIXED:No /NXCOMPAT
/MACHINE:X86 ".\Debug\AssemblyInfo.obj"

".\Debug\example.obj"

".\Debug\stdafx.obj"

".\Debug\app.res"
]
Creating command line "link.exe @"c:\Users\dad\Documents\Visual Studio
2008\Projects\example\example\Debug\RSP00001427165100.rsp" /NOLOGO
/ERRORREPORT:PROMPT"
Output Window Compiling...
stdafx.cpp
Compiling...
example.cpp
Unknown compiler version - please run the configure tests and report the
results
AssemblyInfo.cpp
Generating Code...
Compiling resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
Linking...
libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: void __thiscall
std::_Container_base::_Orphan_all(void)const "
(__imp_?***@_Container_base@std@@QBEXXZ) referenced in function
"public: class std::vector,class std::allocator > > & __thiscall
std::vector,class std::allocator > >::operator=(class std::vector,class
std::allocator > > const &)"
(??4?$***@U?$***@PBG@boost@@V?$***@U?$***@PBG@boost@@@std@@@std@@***@ABV01@@Z)
libboost_regex-vc80-mt-gd-1_34_1.lib(instances.obj) : error LNK2001:
unresolved external symbol "__declspec(dllimport) public: void __thiscall
std::_Container_base::_Orphan_all(void)const "
(__imp_?***@_Container_base@std@@QBEXXZ)
libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base::~_Container_base(void)"
(__imp_??***@std@@***@XZ) referenced in function "public:
__thiscall std::_Vector_val,class std::allocator > >::~_Vector_val,class
std::allocator > >(void)"
(??1?$***@U?$***@PBG@boost@@V?$***@U?$***@PBG@boost@@@std@@@std@@***@XZ)
libboost_regex-vc80-mt-gd-1_34_1.lib(instances.obj) : error LNK2001:
unresolved external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base::~_Container_base(void)"
(__imp_??***@std@@***@XZ)
libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base::_Container_base(void)"
(__imp_??***@std@@***@XZ) referenced in function "protected:
__thiscall std::_Vector_val,class std::allocator > >::_Vector_val,class
std::allocator > >(class std::allocator >)"
(??0?$***@U?$***@PBG@boost@@V?$***@U?$***@PBG@boost@@@std@@@std@@***@V?$***@U?$***@PBG@boost@@@1@@Z)
libboost_regex-vc80-mt-gd-1_34_1.lib(instances.obj) : error LNK2001:
unresolved external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base::_Container_base(void)"
(__imp_??***@std@@***@XZ)
libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: void __thiscall
std::_Container_base::_Swap_all(class std::_Container_base &)const "
(__imp_?***@_Container_base@std@@QBEXAAV12@@Z) referenced in function
"public: void __thiscall std::vector,class std::allocator > >::swap(class
std::vector,class std::allocator > > &)"
(?swap@?$***@U?$***@PBG@boost@@V?$***@U?$***@PBG@boost@@@std@@@std@@QAEXAAV12@@Z)
libboost_regex-vc80-mt-gd-1_34_1.lib(instances.obj) : error LNK2001:
unresolved external symbol "__declspec(dllimport) public: void __thiscall
std::_Container_base::_Swap_all(class std::_Container_base &)const "
(__imp_?***@_Container_base@std@@QBEXAAV12@@Z)
libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: class
std::_String_iterator,class std::allocator > __thiscall
std::basic_string,class std::allocator >::insert(class
std::_String_iterator,class std::allocator >,unsigned short)"
(__imp_?insert@?$***@GU?$***@G@std@@V?$***@G@2@@std@@QAE?AV?$***@GU?$***@G@std@@V?$***@G@2@@***@V32@***@Z)
referenced in function "public: struct boost::re_detail::re_syntax_base *
__thiscall boost::re_detail::basic_regex_creator > >::append_set(class
boost::re_detail::basic_char_set > > const &,struct boost::mpl::bool_<0> *)"
(?append_set@?$***@GU?$***@GV?$***@G@boost@@@boost@@@***@boost@@***@23@ABV?$***@GU?$***@GV?$***@G@boost@@@boost@@@***@PAU?$bool_@$0A@@***@3@@Z)
libboost_regex-vc80-mt-gd-1_34_1.lib(instances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: class
std::_String_iterator,class std::allocator > __thiscall
std::basic_string,class std::allocator >::insert(class
std::_String_iterator,class std::allocator >,char)"
(__imp_?insert@?$***@DU?$***@D@std@@V?$***@D@2@@std@@QAE?AV?$***@DU?$***@D@std@@V?$***@D@2@@***@V32@***@Z)
referenced in function "public: struct boost::re_detail::re_syntax_base *
__thiscall boost::re_detail::basic_regex_creator > >::append_set(class
boost::re_detail::basic_char_set > > const &,struct boost::mpl::bool_<0> *)"
(?append_set@?$***@DU?$***@DV?$***@D@boost@@@boost@@@***@boost@@***@23@ABV?$***@DU?$***@DV?$***@D@boost@@@boost@@@***@PAU?$bool_@$0A@@***@3@@Z)
C:\Users\dad\Documents\Visual Studio 2008\Projects\example\Debug\example.exe
: fatal error LNK1120: 6 unresolved externals
Results Build log was saved at "file://c:\Users\dad\Documents\Visual
Studio 2008\Projects\example\example\Debug\BuildLog.htm"
example - 11 error(s), 0 warning(s)
Post by David R. Palmer
Same issues, I can nspeak to it over the weekend if you would like.
Post by Lars Schouw
I am having a problems with the boost libs I have build the names does
not
start with lib
When I build boost using bjam "-sTOOLS=vc9" install
I got a bunch of .lib files in c:\boost\lib e.g.
boost_thread-vc90-mt-1_35.lib
but when I build my library against tghis if fails to link since it needs
a file libboost_thread-vc90-mt-1_35.lib
What am I doing wrong?
I am using boost from subversion, Windows Vista and Visual Studio 2008
Thanks in advance
Lars
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
Boost-users mailing list
http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
Boost-users mailing list
http://lists.boost.org/mailman/listinfo.cgi/boost-users
--
View this message in context: http://www.nabble.com/libXXX-tp14734770p14780885.html
Sent from the Boost - Users mailing list archive at Nabble.com.
Kevlar
2008-01-27 16:04:46 UTC
Permalink
Thanks, that did the trick. Now when people google the error, they will come
accross this thread with the solution (like I did).

Of course after changing the auto_link to point at the vc90 libs, it was
necessary to recompile them all, but that was possible after the change to
the user_config.
Note Kevlar, you are trying to link against version 8 lib's
"Linking...
libboost_regex-*vc80*-mt-gd-1_34_1.lib(instances.obj) : error LNK2019: "
Download and replace auto_link.hpp (most likely found here) C:\Program
Files\boost\boost_1_34_1\boost\config with the one from
http://svn.boost.org/trac/boost/browser/trunk/boost/config/auto_link.hpp
*snip*
--
View this message in context: http://www.nabble.com/libXXX-tp14734770p15120578.html
Sent from the Boost - Users mailing list archive at Nabble.com.
Loading...