|
Boost-Build : |
From: Andrej van der Zee (mavdzee_at_[hidden])
Date: 2008-06-06 03:41:53
Hi Jurko,
Thanks for your reply!
I noticed that the libboost_XXX.lib files where not
copied during installation of boost. So I copied them
manually to the lib-directory. This seemed to have
"solved" my problem for a while.
But unfortunately, now I get similar issues when I try
to link an executable with one of my own libraries
(speedo_handlers): When I run bjam in the executable
directory, it builds the depending speedo_handlers.dll
(located in another directory) just fine. But then
linking of the executable itself fails because it cant
find speedo_handlers.lib (but it should be looking for
the speedo_handlers.dll I presume).
It is the first time I compile on Windows, so I am
sorry about the dum question, but what is the
difference between .dll and .lib? Is the latter the
static lib or .a in Linux?
I am using bjam from the boost source tree version
1.35 on Windows XP using the compiler msvc 9.0. Below
the output of bjam with option --debug-building.
Hope you can help! Its killing me.
Cheers,
Andrej
building project Jamfile</F:/cygwin/home/Andrej van
der Zee/speedo/trunk/server/daemon>
('object(project-target)@107') with <toolset>msvc
<variant>release
Building target './speedosrvd'
Build request: <debug-symbols>off
<define>NDEBUG <inlining>full <optimization>speed
<runtime-debugging>off <toolset>msvc <variant>release
Command line free features:
Target requirements:
<define>BOOST_ALL_DYN_LINK <define>BOOST_ALL_NO_LIB=1
<dll-path>/mbrace/speedo/lib
<include>/F:/cygwin/home/Andrej van der
Zee/speedo/trunk <library-path>/opt/lib <link>shared
<os>AIX:<include>/opt/freeware/include/boost-1_35
<os>LINUX:<include>/usr/local/include/boost-1_35
<os>NT:<define>_WIN32_WINNT=0x0501
<os>NT:<include>/opt/include <threading>multi
<toolset>msvc,<runtime-link>shared:<threading>multi
Common properties: <asynch-exceptions>off
<debug-store>object <debug-symbols>off
<define>BOOST_ALL_DYN_LINK <define>BOOST_ALL_NO_LIB=1
<define>NDEBUG <define>_WIN32_WINNT=0x0501
<dll-path>/mbrace/speedo/lib <exception-handling>on
<extern-c-nothrow>off <hardcode-dll-paths>true
<host-os>windows <include>/F:/cygwin/home/Andrej van
der Zee/speedo/trunk <include>/opt/include
<inlining>full <install-dependencies>off
<library-path>/opt/lib <link>shared <midl-robust>yes
<midl-stubless-proxy>yes <optimization>speed <os>NT
<pch>on <profiling>off <rtti>on <runtime-debugging>off
<runtime-link>shared <stdlib>native
<suppress-import-lib>false
<symlink-location>project-relative <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <user-interface>console <variant>release
<warnings-as-errors>off <warnings>on
Building target '/boost_system'
Build request: <asynch-exceptions>off
<debug-store>object <debug-symbols>off <define>NDEBUG
<exception-handling>on <extern-c-nothrow>off
<inlining>full <link>shared <midl-robust>yes
<midl-stubless-proxy>yes <optimization>speed <os>NT
<pch>on <profiling>off <rtti>on <runtime-debugging>off
<runtime-link>shared <stdlib>native <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <variant>release <warnings-as-errors>off
<warnings>on
Command line free features:
Target requirements:
<name>boost_system-vc90-mt-1_35
Common properties: <asynch-exceptions>off
<debug-store>object <debug-symbols>off <define>NDEBUG
<exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>windows
<inlining>full <install-dependencies>off <link>shared
<midl-robust>yes <midl-stubless-proxy>yes
<name>boost_system-vc90-mt-1_35 <optimization>speed
<os>NT <pch>on <profiling>off <rtti>on
<runtime-debugging>off <runtime-link>shared
<stdlib>native <suppress-import-lib>false
<symlink-location>project-relative <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <user-interface>console <variant>release
<warnings-as-errors>off <warnings>on
Usage requirements for boost_system are
Build properties: <asynch-exceptions>off
<debug-store>object <debug-symbols>off <define>NDEBUG
<exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>windows
<inlining>full <install-dependencies>off <link>shared
<midl-robust>yes <midl-stubless-proxy>yes
<name>boost_system-vc90-mt-1_35 <optimization>speed
<os>NT <pch>on <profiling>off <rtti>on
<runtime-debugging>off <runtime-link>shared
<stdlib>native <suppress-import-lib>false
<symlink-location>project-relative <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <user-interface>console <variant>release
<warnings-as-errors>off <warnings>on
Usage requirements from boost_system are
Building target '/boost_thread'
Build request: <asynch-exceptions>off
<debug-store>object <debug-symbols>off <define>NDEBUG
<exception-handling>on <extern-c-nothrow>off
<inlining>full <link>shared <midl-robust>yes
<midl-stubless-proxy>yes <optimization>speed <os>NT
<pch>on <profiling>off <rtti>on <runtime-debugging>off
<runtime-link>shared <stdlib>native <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <variant>release <warnings-as-errors>off
<warnings>on
Command line free features:
Target requirements:
<name>boost_thread-vc90-mt-1_35
Common properties: <asynch-exceptions>off
<debug-store>object <debug-symbols>off <define>NDEBUG
<exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>windows
<inlining>full <install-dependencies>off <link>shared
<midl-robust>yes <midl-stubless-proxy>yes
<name>boost_thread-vc90-mt-1_35 <optimization>speed
<os>NT <pch>on <profiling>off <rtti>on
<runtime-debugging>off <runtime-link>shared
<stdlib>native <suppress-import-lib>false
<symlink-location>project-relative <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <user-interface>console <variant>release
<warnings-as-errors>off <warnings>on
Usage requirements for boost_thread are
Build properties: <asynch-exceptions>off
<debug-store>object <debug-symbols>off <define>NDEBUG
<exception-handling>on <extern-c-nothrow>off
<hardcode-dll-paths>true <host-os>windows
<inlining>full <install-dependencies>off <link>shared
<midl-robust>yes <midl-stubless-proxy>yes
<name>boost_thread-vc90-mt-1_35 <optimization>speed
<os>NT <pch>on <profiling>off <rtti>on
<runtime-debugging>off <runtime-link>shared
<stdlib>native <suppress-import-lib>false
<symlink-location>project-relative <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <user-interface>console <variant>release
<warnings-as-errors>off <warnings>on
Usage requirements from boost_thread are
Building target
'../../server/handlers/speedo_handlers'
Build request: <asynch-exceptions>off
<debug-store>object <debug-symbols>off <define>NDEBUG
<exception-handling>on <extern-c-nothrow>off
<inlining>full <link>shared <midl-robust>yes
<midl-stubless-proxy>yes <optimization>speed <os>NT
<pch>on <profiling>off <rtti>on <runtime-debugging>off
<runtime-link>shared <stdlib>native <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <variant>release <warnings-as-errors>off
<warnings>on
Command line free features:
Target requirements:
<define>BOOST_ALL_DYN_LINK <define>BOOST_ALL_NO_LIB=1
<dll-path>/mbrace/speedo/lib
<include>/F:/cygwin/home/Andrej van der
Zee/speedo/trunk <library-path>/opt/lib
<os>AIX:<include>/opt/freeware/include/boost-1_35
<os>LINUX:<include>/usr/local/include/boost-1_35
<os>NT:<define>_WIN32_WINNT=0x0501
<os>NT:<include>/opt/include
<toolset>msvc,<runtime-link>shared:<threading>multi
Common properties: <asynch-exceptions>off
<debug-store>object <debug-symbols>off
<define>BOOST_ALL_DYN_LINK <define>BOOST_ALL_NO_LIB=1
<define>NDEBUG <define>_WIN32_WINNT=0x0501
<dll-path>/mbrace/speedo/lib <exception-handling>on
<extern-c-nothrow>off <hardcode-dll-paths>true
<host-os>windows <include>/F:/cygwin/home/Andrej van
der Zee/speedo/trunk <include>/opt/include
<inlining>full <install-dependencies>off
<library-path>/opt/lib <link>shared <midl-robust>yes
<midl-stubless-proxy>yes <optimization>speed <os>NT
<pch>on <profiling>off <rtti>on <runtime-debugging>off
<runtime-link>shared <stdlib>native
<suppress-import-lib>false
<symlink-location>project-relative <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <user-interface>console <variant>release
<warnings-as-errors>off <warnings>on
Usage requirements for speedo_handlers
are
Build properties: <asynch-exceptions>off
<debug-store>object <debug-symbols>off
<define>BOOST_ALL_DYN_LINK <define>BOOST_ALL_NO_LIB=1
<define>NDEBUG <define>_WIN32_WINNT=0x0501
<dll-path>/mbrace/speedo/lib <exception-handling>on
<extern-c-nothrow>off <hardcode-dll-paths>true
<host-os>windows <include>/F:/cygwin/home/Andrej van
der Zee/speedo/trunk <include>/opt/include
<inlining>full <install-dependencies>off
<library-path>/opt/lib <link>shared <midl-robust>yes
<midl-stubless-proxy>yes <optimization>speed <os>NT
<pch>on <profiling>off <rtti>on <runtime-debugging>off
<runtime-link>shared <stdlib>native
<suppress-import-lib>false
<symlink-location>project-relative <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <user-interface>console <variant>release
<warnings-as-errors>off <warnings>on
Usage requirements from speedo_handlers
are <xdll-path>/F:/cygwin/home/Andrej van der
Zee/speedo/trunk/server/handlers/bin/msvc-9.0/release/threading-multi
Usage requirements for speedosrvd are
<xdll-path>/F:/cygwin/home/Andrej van der
Zee/speedo/trunk/server/handlers/bin/msvc-9.0/release/threading-multi
Build properties: <asynch-exceptions>off
<debug-store>object <debug-symbols>off
<define>BOOST_ALL_DYN_LINK <define>BOOST_ALL_NO_LIB=1
<define>NDEBUG <define>_WIN32_WINNT=0x0501
<dll-path>/mbrace/speedo/lib <exception-handling>on
<extern-c-nothrow>off <hardcode-dll-paths>true
<host-os>windows <include>/F:/cygwin/home/Andrej van
der Zee/speedo/trunk <include>/opt/include
<inlining>full <install-dependencies>off
<library-path>/opt/lib <link>shared <midl-robust>yes
<midl-stubless-proxy>yes <optimization>speed <os>NT
<pch>on <profiling>off <rtti>on <runtime-debugging>off
<runtime-link>shared <stdlib>native
<suppress-import-lib>false
<symlink-location>project-relative <target-os>windows
<threading>multi <toolset-msvc:version>9.0
<toolset>msvc <user-interface>console <variant>release
<warnings-as-errors>off <warnings>on
<xdll-path>/F:/cygwin/home/Andrej van der
Zee/speedo/trunk/server/handlers/bin/msvc-9.0/release/threading-multi
Usage requirements from speedosrvd are
<xdll-path>/F:/cygwin/home/Andrej van der
Zee/speedo/trunk/server/handlers/bin/msvc-9.0/release/threading-multi
...patience...
...found 1135 targets...
...updating 2 targets...
msvc.link.dll
..\..\server\handlers\bin\msvc-9.0\release\threading-multi\speedo_handlers.dll
msvc.link
bin\msvc-9.0\release\threading-multi\speedosrvd.exe
LINK : fatal error LNK1181: cannot open input file
'..\..\server\handlers\bin\msvc-9.0\release\threading-multi\speedo_handlers.lib'
call "F:\Program Files\Microsoft Visual Studio
9.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /subsystem:console
/out:"bin\msvc-9.0\release\threading-multi\speedosrvd.exe"
/LIBPATH:"\opt\lib"
@"bin\msvc-9.0\release\threading-multi\speedosrvd.exe.rsp"
if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
if exist
"bin\msvc-9.0\release\threading-multi\speedosrvd.exe.manifest"
(
mt -nologo -manifest
"bin\msvc-9.0\release\threading-multi\speedosrvd.exe.manifest"
"-outputresource:bin\msvc-9.0\release\threading-multi\speedosrvd.exe;1"
)
...failed msvc.link
bin\msvc-9.0\release\threading-multi\speedosrvd.exe...
...failed updating 1 target...
...updated 1 target...
--- Jurko GospodnetiÄ <jurko.gospodnetic_at_[hidden]>
wrote:
> Hi Andrej.
>
> > I am trying to port my application from Linux to
> > Windows. I was able to compile boost and also my
> own
> > project. Though, linking my executables gives
> errors
> > like below; somehow it tries to find a .lib file
> > instead of a .dll.
>
> Try using the --debug-building flag to see what
> properties Boost
> Build is applying to see if it is using your
> libraries as <link>static
> or <link>shared.
>
>
> > Is this normal? Hope you can help.
>
> No, it's not normal. :-) But in order to get more
> help, please trim
> this down a a small example reproducing the problem.
>
> Also, please state which Boost Build/Boost Jam
> version you're using...
>
> Best regards,
> Jurko GospodnetiÄ
>
>
> _______________________________________________
> Unsubscribe & other changes:
>
http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk