|
Boost-Build : |
From: Jorge Suit Perez Ronda (josp.jorge_at_[hidden])
Date: 2006-10-17 05:08:20
This works for me,
---------------------------------
lib WS : : <name>WS2_32 ;
explicit WS ;
exe hello : hello.cpp : <toolset>msvc:<library>WS ;
---------------------------------
but I have not tried compiling with gcc because hello.c depends fully on
windows lib.
On Tue, 2006-10-17 at 08:32 +0200, Daniel Lidström wrote:
> Now I've created a small example, that should link to WS2_32.LIB, if
> compiling with
> the msvc-7.1 toolset. It doesn't link with WS2_32.LIB though. I've tried
> 'debugging'
> by looking at the updating actions, but I can't even see WS2_32.LIB there:
>
> : bjam msvc-7.1 -oupdates.txt
> ...found 9 targets...
> ...updating 5 targets...
> MkDir1 bin
> MkDir1 bin\msvc-7.1
> MkDir1 bin\msvc-7.1\debug
> compile-c-c++ bin\msvc-7.1\debug\hello.obj
> msvc.link bin\msvc-7.1\debug\hello.exe
> ...updated 5 targets...
>
>
> : type updates.txt
>
> mkdir "bin"
>
> mkdir "bin\msvc-7.1"
>
> mkdir "bin\msvc-7.1\debug"
>
> call "C:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\bin\vcvars32.bat" >nul
> cl /Zm800 -nologo @"bin\msvc-7.1\debug\hello.obj.rsp"
>
> call "C:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\bin\vcvars32.bat" >nul
> link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console
> /out:"bin\msvc-7.1\debug\hello.exe" @"bin\msvc-7.1\debug\hello.exe.rsp"
> if exist "bin\msvc-7.1\debug\hello.exe.manifest" (
> mt -nologo -manifest "bin\msvc-7.1\debug\hello.exe.manifest"
> "-outputresource:bin\msvc-7.1\debug\hello.exe;1
> "
> )
>
> What am I doing wrong?
>
> Thanks in advance!
>
> Hälsningar,
> Daniel
> SBG AB
>
> Phone: +4687112090
> Fax : +4687112098
> Location:
> 59 14'10" N
> 18 00'09" E
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
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