[Qt-interest] help on qmake code for linking boost library

Andreas Pakulat apaku at gmx.de
Sat Jan 30 21:29:20 CET 2010


On 30.01.10 19:45:54, Matthias Pospiech wrote:
> 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 

Did you read the relevant part in the qmake manual about the
specialities wrt. debug_and_release configs? The debug and release
scopes are only for pure-debug and pure-release, there's a special
function to setup flags for "debug in debug_and_release" and "release in
debug_and_release". I can't recall it right now, but its documented in
the qmake manual.

Andreas

-- 
An exotic journey in downtown Newark is in your future.



More information about the Qt-interest-old mailing list