Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi everyone,

I'm trying to compile my project. I receive errors as follows :

XML
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(27) : error C2065: 'LC_CTYPE' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(27) : error C2057: expected constant expression
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(28) : error C2065: 'LC_MONETARY' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(28) : error C2057: expected constant expression
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(29) : error C2065: 'LC_NUMERIC' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(29) : error C2057: expected constant expression
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(30) : error C2065: 'LC_TIME' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(30) : error C2057: expected constant expression
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(905) : error C2065: 'LC_CTYPE' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(1147) : error C2065: 'LC_CTYPE' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(1794) : error C2065: 'LC_CTYPE' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(2035) : error C2065: 'LC_CTYPE' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(2309) : error C2065: 'LC_CTYPE' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\cmath(21) : error C2039: 'acosf' : is not a member of '`global namespace''
...
...
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\cmath(37) : fatal error C1003: error count exceeds 100; stopping compilation


I think the errors above are because of conversion from VC 8 to VC 9. Can anyone help me fix these errors?

Thanks.
Posted
Updated 6-Jul-11 22:57pm
v4
Comments
Sergey Alexandrovich Kryukov 7-Jul-11 1:28am    
1) I don't no such English word "occuration". It this is a neologism, you need to explain what you mean; 2) you apparently messed up includes; I don't see a big sense in looking at your dump unless you provide a code sample showing this problem. For goodness sake, don't post all your code. It would be the best it you try to ***create*** a code sample specially to show this problem, as short as possible.
--SA
Emilio Garavaglia 7-Jul-11 2:13am    
From english to italian to latin to french to english: "occuration" == "happening". (an ancient roman is probably still walking around!)
Sergey Alexandrovich Kryukov 8-Jul-11 1:23am    
There are several very different versions of "ancient Roman". Yes, a lot walk around. But -- entia non sunt multiplicanda praeter necessitatem! -- "occuration" is guessable, but spell checkers don't digest it. :-)

--SA
dung 7-Jul-11 2:39am    
Thanks SAKryukov to comment for me, This is error to compiler process. I don't understand "why are those error occur?". The full error here :
...
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\cmath(23) : error C2039: 'cosf' : is not a member of '`global namespace''
...
Can you explain to me about them.

Thanks !
Prerak Patel 7-Jul-11 4:55am    
SA already suggested to check your includes.

1 solution

I would say your best bet is to check your precompiler settings, I'd say these come from an external library that you were properly including in your VC8 build settings but have not made it over to VC9.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900