Boost logo

Boost Users :

From: Jeffrey Holle (jeff.holle_at_[hidden])
Date: 2005-02-14 23:53:00


Looks like you are attempting to create a static library when you should be
creating an executable (demo.cpp has a main function).

Also, you need to add one of the serialization libraries that you've listed
below to the link...

Dave Gomboc wrote:
> I've downloaded boost 1.32, downloaded bjam, ran the vcvars32.bat for
> MSVC7.1, ran bjam install, updated Tools | Options | Projects | VC++
> Directories | Libraries to include "C:\Boost\lib" first. I also added the
> include directory (which worked, or I would have received a error at
> #include <boost/...>).
>
> However, when I try to build the first demo app, I get LNK2019 errors.
> But there are a slew of files in C:\Boost\lib:
>
> 02/14/2005 02:45 PM 7,967,370
> libboost_serialization-vc71-mt-1_32.lib
> 02/14/2005 02:43 PM 19,093,084
> libboost_serialization-vc71-mt-gd-1_32.li
> b
> 02/14/2005 02:43 PM 19,093,084
> libboost_serialization-vc71-mt-gd.lib
> 02/14/2005 02:44 PM 8,360,362
> libboost_serialization-vc71-mt-s-1_32.lib
>
> 02/14/2005 02:44 PM 8,360,362
> libboost_serialization-vc71-mt-s.lib
> 02/14/2005 02:42 PM 19,443,798
> libboost_serialization-vc71-mt-sgd-1_32.l
> ib
> 02/14/2005 02:42 PM 19,443,798
> libboost_serialization-vc71-mt-sgd.lib
> 02/14/2005 02:45 PM 7,967,370 libboost_serialization-vc71-mt.lib
> 02/14/2005 02:44 PM 8,341,356
> libboost_serialization-vc71-s-1_32.lib
> 02/14/2005 02:44 PM 8,341,356 libboost_serialization-vc71-s.lib
> 02/14/2005 02:41 PM 19,460,954
> libboost_serialization-vc71-sgd-1_32.lib
> 02/14/2005 02:41 PM 19,460,954 libboost_serialization-vc71-sgd.lib
>
> (There are also wide-character counterparts.) What step have I missed?
>
> Incidentally, compiling at warning level 4 is pretty noisy. Full
> compilation output below.
>
> Thanks,
> Dave
>
>
> ------ Build started: Project: SerializationTest, Configuration: Debug
> Win32 ------
>
> Compiling...
> demo.cpp

> Linking...
> Creating library Debug/SerializationTest.lib and object


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net