Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2005-02-12 23:40:46


Hi Hartmut,

I wanted to try out the examples. I encountered some problems:

+ Read the quikstart to get me started immediately.
     "Do not instantiate the main, preprocessing iterators yourself."
     --> not enough context here. "main" is undefined at this point.

+ when using bjam V2, VC7.1 fails with a buffer overrun (compiler
     problem). No problem with bjam V1. I wanted to try the samples
     but they don't have a V1 Jamfile, only V2. So I had to switch
     to using g++ instead. So far so good.

+ Now, I'm able to build the samples using bjam V2. A little hickup:
     bjam complains:
     error: Unable to find file or target named
     error: '/boost/program_options//boost_program_options'
     error: referred from project at
     error: 'cpp_tokens/build'
     Looking at program_options, it seems that the library name is
     program_options (without the boost_ prefix).

+ Got this fixed and. Now got into a link error:
     gcc.link ..\..\..\bin.v2\tools\inspect\build\gcc-3.2\
     release\inspect.exe
     ..\..\..\bin.v2\tools\inspect\build\gcc-3.2\release\
     cpp_main.o(.text+0x50):cpp_
     ain.cpp: multiple definition of `_main'
     ..\..\..\bin.v2\tools\inspect\build\gcc-3.2\
     release\inspect.o(.text+0x7eb0):ins
     ect.cpp: first defined here

Any clues?

Regards,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk