cannot find namespace boost?
Hi!
When compiling my project using Boost 1.43 and Visual C++ 2010 Express
I get the following:
error C2653: 'boost' : is not a class or namespace name
error C2143: syntax error : missing ';' before '<'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int error C2238: unexpected token(s) preceding ';'
where I am using boost::shared_ptr
Did you double check that you have "#include
On Sat, 07 Aug 2010 05:05:06 +0200
Stefan van Kessel
Did you double check that you have "#include
" _before_ the use? Is this the first error message? I don't have any problems with boost::shared_ptr from Boost 1.43 using Visual C++ 2010 (Professional). Did you try a trivial case like just: #include int main(){ boost::shared_ptr<int> bloek; }
I just managed to get it working - copied the boost folder again to my
include folder for cmake , and now I get neither warnings nor errors
during compile.
Anyway, thanks for your input.
--
Andreas Ronnquist
participants (2)
-
Andreas Ronnquist
-
Stefan van Kessel