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

Andreas Pakulat apaku at gmx.de
Sat Jan 30 19:37:10 CET 2010


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:
> 
> win32{
>     CONFIG           += debug_and_release
>     CONFIG           += build_all
> }
> DEV_LIB_PATH = C:\Users\Matthias\Documents\SVN\Library
> win32-msvc2005 {
>     debug:  BOOST_LIB_PATH = 
> $${DEV_LIB_PATH}\lib\msvc-2005\boost\regex\debug
>     release:BOOST_LIB_PATH = 
> $${DEV_LIB_PATH}\lib\msvc-2005\boost\regex\release
> }
> win32-msvc2005{       
>     debug:  BOOST_LIBRARIES = -L$${BOOST_LIB_PATH} 
> -llibboost_regex-vc80-mt-gd-1_41
>     release:BOOST_LIBRARIES = -L$${BOOST_LIB_PATH} 
> -llibboost_regex-vc80-mt-1_41
> }
> 
> LIBS += $${BOOST_LIBRARIES}
> 
> 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?

Andreas

-- 
You have an unusual magnetic personality.  Don't walk too close to
metal objects which are not fastened down.



More information about the Qt-interest-old mailing list