-
April 5th, 2012, 11:18 AM
#1
boost linking
hi folks,
I'm building an app and the error is
1>LINK : fatal error LNK1181: cannot open input file 'libboost_date_time-vc90-mt-sgd-1_42.lib'
and I haven't told it to link against this library in project settings, so why is it even trying to find this file? Devstudio 2008.
Last edited by c94wjpn; April 5th, 2012 at 11:21 AM.
-
April 5th, 2012, 12:11 PM
#2
Re: boost linking
Originally Posted by c94wjpn
hi folks,
I'm building an app and the error is
1>LINK : fatal error LNK1181: cannot open input file 'libboost_date_time-vc90-mt-sgd-1_42.lib'
and I haven't told it to link against this library in project settings, so why is it even trying to find this file? Devstudio 2008.
Look up "#pragma comment" and the "lib" option.
http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx
Regards,
Paul McKenzie
-
April 5th, 2012, 12:20 PM
#3
Re: boost linking
no, actually I think I need to look up boost BOOST_ALL_NO_LIB option.
-
April 5th, 2012, 01:06 PM
#4
Re: boost linking
Originally Posted by c94wjpn
no, actually I think I need to look up boost BOOST_ALL_NO_LIB option.
Well you asked how a library can be linked without specifying it in the project settings, and
Code:
#pragma comment (lib,"whatever.lib")
is how it's done with the Visual Studio C++ compiler. All that BOOST_??? stuff does is more than likely place #ifdef/#endif around these set of #pragmas.
Regards,
Paul McKenzie
Last edited by Paul McKenzie; April 5th, 2012 at 01:09 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|