Boost logo

Boost Users :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-10-29 21:34:39


Rohit O chokhani writes:
> Hi, i am a rookie as far as boost is concerned and i
> am trying to make boost work but just cant...on the
> point of giving up on it...so please help asap....
>
> i am trying to use a scripting language called lua
> with my c++ source code. FOr that I felt the need to
> use luabind library which is completely dependent on
> boost.(project specific reasons for selecting luabind)
>
>
> As a result i need to have boost on my system. For the
> past 3-4 days ever since i have been trying to make
> boost works i have been getting all sorts of
> compilation errors.
> mainly they are as follows:
>
> C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\memory(16) : error C2059: syntax
> error : 'string'
> C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\memory(17) : error C2091: function
> returns function
> C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\memory(17) : error C2809:
> 'operator new' has no formal parameters
> C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\memory(20) : error C2954: template
> definitions cannot nest
> C:\BOOST2\BOOST\boost/mpl/aux_/integral_wrapper.hpp(88)
> : fatal error C1506: unrecoverable block scoping error
> Error executing cl.exe.

It would help if you provided the minimal code that reproduces
the problem. In absence of this, the above might be caused by
incorrect nesting of namespace declarations, e.g.

    namespace my {

    // ...

    #include <boost/something.hpp> // incorrect!

HTH,

--
Aleksey Gurtovoy
MetaCommunications Engineering

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