Project linking problem with boost
Hello, The problem here relates to boost, but I'm aware it may of more general nature rather than boost specific. I had a weird problem with my project. It has a bunch of dependencies including many of the boost libraries. My platform is: Win7SP1 + VS2008SP1 + boost1.39.0. I have properly set the VC++ directories for both include and lib files pointing to the boost folder (1.39.0) and of course those for other dependencies. But I got the following message when I built the project: 1>Linking to GSL lib1>Linking to lib file: CGAL-vc90-mt.lib1>Linking to lib file: libboost_date_time-vc80-mt-1_34.lib1>Linking to lib file: libboost_regex-vc80-mt-1_34.lib I don't know why VS was attempting to link to libs of boost 1.34.0 built with VC80 (I'm using VC 90 - VS2008) Could anybody please give me some hints about this problem or where the message like "Linking to lib file: ..." came from? Thanks. Best regards, Max
Sorry, it may sound a dumb question but are you sure that there are no 1.34 includes before the 1.39 or that there is no hardcoded 1.34 include in your code ? regards Lorenzo
Try one of the /VERBOSE options on the linker's command line will get you this information, I cannot remember which is the most painless one though.
From the command line: /VERBOSE[:{CLR|ICF|INCR|LIB|REF|SAFESEH|UNUSEDLIBS}]
/VERBOSE:LIB You can find this under Properties, Linker, General, Show Progress You can also set directly Properties, Linker, Command Line As I recall just /VERBOSE:LIB should generate a lot of output about which library is pulled in (and hopefully by which other library). Just the /VERBOSE output generate a huge amount of output (minimize the window and open with text editor later or it will be a long wait). - Mark - From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Max Sent: Wednesday, April 15, 2015 5:49 AM To: boost-users Subject: [Boost-users] Project linking problem with boost Hello, The problem here relates to boost, but I'm aware it may of more general nature rather than boost specific. I had a weird problem with my project. It has a bunch of dependencies including many of the boost libraries. My platform is: Win7SP1 + VS2008SP1 + boost1.39.0. I have properly set the VC++ directories for both include and lib files pointing to the boost folder (1.39.0) and of course those for other dependencies. But I got the following message when I built the project: 1>Linking to GSL lib 1>Linking to lib file: CGAL-vc90-mt.lib 1>Linking to lib file: libboost_date_time-vc80-mt-1_34.lib 1>Linking to lib file: libboost_regex-vc80-mt-1_34.lib I don't know why VS was attempting to link to libs of boost 1.34.0 built with VC80 (I'm using VC 90 - VS2008) Could anybody please give me some hints about this problem or where the message like "Linking to lib file: ..." came from? Thanks. Best regards, Max
participants (3)
-
Lorenzo Trivelli
-
Mark.Bartosik@thomsonreuters.com
-
Max