i am stuck since a week here: need help:scoping error when trying to make boost work with luabind
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. i did find some solutions of the various forums of boost recommending to build the latest version from cvs in order to get rid of the scoping issue. however, that hasnt solved my case. could anyone kindly suggest some fixes, i would really appreciate it, thanks and regards, rohit __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail
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
participants (2)
-
Aleksey Gurtovoy
-
Rohit O chokhani