Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Errors in xlocale and istream

Status
Not open for further replies.

CaKiwi

Programmer
Apr 8, 2001
1,294
0
0
US
I am trying to link with a 3rd party library but I get the following errors in their include file.
Code:
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(330) : warning C4509: nonstandard extension used: 'std::locale::locale' uses SEH and '_Lobj' has destructor
1>        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(327) : see declaration of '_Lobj'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(331) : error C2059: syntax error : 'catch'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(331) : error C2143: syntax error : missing ';' before '{'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(335) : error C2712: Cannot use __try in functions that require object unwinding
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(348) : error C2059: syntax error : 'catch'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(348) : error C2143: syntax error : missing ';' before '{'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(367) : error C2059: syntax error : 'catch'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xlocale(367) : error C2143: syntax error : missing ';' before '{'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\istream(1086) : error C2059: syntax error : 'catch'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\istream(1086) : error C2143: syntax error : missing ';' before '{'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\istream(1121) : error C2059: syntax error : 'catch'
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\istream(1121) : error C2143: syntax error : missing ';' before '{'
Anyone have any thoughts?

CaKiwi
 
I found it was because I had some preprocessor definitions such as

try=__try

which were needed to fix compile problems on a previous version of Visual Studio

CaKiwi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top