CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: boost linking

  1. #1
    Join Date
    Mar 2000
    Location
    Oxford, UK.
    Posts
    352

    Wink 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.

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: boost linking

    Quote Originally Posted by c94wjpn View Post
    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

  3. #3
    Join Date
    Mar 2000
    Location
    Oxford, UK.
    Posts
    352

    Smile Re: boost linking

    no, actually I think I need to look up boost BOOST_ALL_NO_LIB option.

  4. #4
    Join Date
    Apr 1999
    Posts
    27,449

    Re: boost linking

    Quote Originally Posted by c94wjpn View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured