Re: [Boost-users] Unable to build old project using boost

----- Original Message ----- From: Edward Diener <eldiener@tropicsoft.com> To: boost-users@lists.boost.org Subject: Re: [Boost-users] Unable to build old project using boost Date: 2015-04-11 21:33 On 4/11/2015 6:33 AM, Max wrote:
Hi guys,
This must be a trivial question, but I just couldn't sort it out.
I'm compiling a old project which used to work fine. But now I received a bunch of errors (this is not a surprise because the project have a lot of other dependencies and I'm in the way of setting them up) with the first one as:
c:\lib\boost_1_49_0\boost\type_traits\add_lvalue_reference.hpp(19) : error C2143: syntax error : missing ',' before '&&'
I'm using Win 7 SP1 + VS 2008 with SP + boost 1.49.0 (I'm using this because I previous used this. If this works fine, I will consider migrating to the latest version)
Thanks for any hints. If you are using an older version of Boost and it was working before and now it is not working, something must have changed. Try to determine what might have changed. You also need to show source code you are compiling when the error occurs.
Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Thank you Edward, To round the culprit of the problem, I created another empty win32 console app using the appwizard.But by just adding the single line of #include <boost/algorithm/string.hpp> caused the same problem: #include "stdafx.h" #include <boost/algorithm/string.hpp> int _tmain(int argc, _TCHAR* argv[]){ return 0;} The error messages: 1>C:\Lib\Coin-3.0.0\include\boost/utility/enable_if.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss1>C:\Lib\Coin-3.0.0\include\boost/utility/enable_if.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss1>c:\Lib\boost_1_49_0\boost/type_traits/add_rvalue_reference.hpp(46) : error C2059: syntax error : '&&' Thank you. Best regards,Max
participants (1)
-
Max