Problems upgrading from 1_34_1 to 1_38_0 in VS 2005 Express
Hi, The only thing i changed in my project was new location for headers and libraries (from 1_34_1 to 1_38_0). Now I am getting these messages for a lot of classes: 1>pipeline.cpp 1>c:\program files\microsoft visual studio 8\vc\include\complex(356) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(356) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(376) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(376) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(381) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(381) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(386) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(386) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(391) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(391) : error C2059: syntax error : '::' 1>noise.cpp 1>llxmlrpctransaction.cpp 1>c:\program files\microsoft visual studio 8\vc\include\complex(356) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(356) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(376) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(376) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(381) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(381) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(386) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(386) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(391) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(391) : error C2059: syntax error : '::' 1>llworldmapview.cpp 1>c:\program files\microsoft visual studio 8\vc\include\complex(356) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(356) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(376) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(376) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(381) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(381) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(386) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(386) : error C2059: syntax error : '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(391) : error C2589: '(' : illegal token on right side of '::' 1>c:\program files\microsoft visual studio 8\vc\include\complex(391) : error C2059: syntax error : '::' any help is appreciated
AMDG Roman Stepanenko wrote:
The only thing i changed in my project was new location for headers and libraries (from 1_34_1 to 1_38_0). Now I am getting these messages for a lot of classes:
1>pipeline.cpp 1>c:\program files\microsoft visual studio 8\vc\include\complex(356) : error C2589: '(' : illegal token on right side of '::'
Somehow cosf is getting defined as a macro. In Christ, Steven Watanabe
Do you have any theories how that could happen? I.e. did something change in
boost that causes this conflict?
I also tested upgrading from 1_34_1 to 1_35_0, 1_36_0, 1_37_0 - all with the
same kind of error ..
roman.
On Mon, Mar 16, 2009 at 11:44 AM, Steven Watanabe
AMDG
Roman Stepanenko wrote:
The only thing i changed in my project was new location for headers and libraries (from 1_34_1 to 1_38_0). Now I am getting these messages for a lot of classes:
1>pipeline.cpp 1>c:\program files\microsoft visual studio 8\vc\include\complex(356) : error C2589: '(' : illegal token on right side of '::'
Somehow cosf is getting defined as a macro.
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
AMDG Roman Stepanenko wrote:
Do you have any theories how that could happen? I.e. did something change in boost that causes this conflict?
I also tested upgrading from 1_34_1 to 1_35_0, 1_36_0, 1_37_0 - all with the same kind of error ..
It's hard to say. You'll have to find where it is being #defined. In Christ, Steven Watanabe
At 1:04 PM -0400 3/16/09, Roman Stepanenko wrote:
Do you have any theories how that could happen? I.e. did something change in boost that causes this conflict?
This sounds similar to a problem I ran into with the same upgrade. The problem was not in boost, but in something else that was included before the relevant boost header, and it showed up in the upgrade because something in boost recently started including <complex> (I think it might have been type_traits.hpp addition of is_complex.hpp that tripped me up). My suggestion would be to run just the pre-processor on the file in question and look for where the #define for cosf is coming from.
participants (3)
-
Kim Barrett
-
Roman Stepanenko
-
Steven Watanabe