[Qt-interest] help on qmake code for linking boost library
Matthias Pospiech
matthias.pospiech at gmx.de
Sat Jan 30 19:45:54 CET 2010
Andreas Pakulat schrieb:
> On 30.01.10 17:51:29, Matthias Pospiech wrote:
>
>> I get the following error in the linker
>> link /NOLOGO /DEBUG /DLL /MANIFEST
>> /MANIFESTFILE:"debug\source-highlight
>> d.intermediate.manifest" /VERSION:3.01
>> /OUT:..\..\lib\source-highlightd3.dll @C:
>> \Users\Matthias\AppData\Local\Temp\nm77C8.tmp
>> LINK : fatal error LNK1104: cannot open file
>> 'libboost_regex-vc80-mt-gd-1_41.lib'
>>
>> The lib was added with:
>> ...
>>
>> The file exists at
>> C:\Users\Matthias\Documents\SVN\Library\lib\msvc-2005\boost\regex\debug\libboost_regex-vc80-mt-gd-1_41.lib
>>
>> What can I check now? I do not see where the error is located.
>>
>
> Did you try to print out the value of BOOST_LIB_PATH? Also I'm kinda
> surprised that vc8's link command understands gcc link flags (i.e. -l
> and -L). Did you try to use the link-flags that are documented in msdn
> already?
>
If I do
message( "Libraries: " $$LIBS)
it prints out
Project MESSAGE: Libraries:
-LC:\Users\Matthias\Documents\SVN\Library\lib\msvc-2005\boost\regex\release
-llibboost_regex-vc80-mt-1_41
The problem seams to be related to debug_and_release config. If I set it
too release only, then the error changes to another link error:
link /NOLOGO /INCREMENTAL:NO /VERSION:3.01
/OUT:..\..\lib\source-highlig
ht.lib @C:\Users\Matthias\AppData\Local\Temp\nm34FA.tmp
LINK : fatal error LNK1561: entry point must be defined
But that maybe related to the fact that the library under msvc is
missing the necessary dllimport /export definitions.
So I have to check that if it builds in static.
Nevertheless, it should work with debug_and_release, or at least I would
like to know why it does not.
And yes, msvc does understand that link format, at least in all other
librarys that I use it works.
Matthias
More information about the Qt-interest-old
mailing list