Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've been porting a VxWorks/Tornado application to Windows; building using VC++ 2012. I surely must set inclusion paths to the original application's header folders. But I didn't set the inclusion folders to cover
VB.NET
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include


I got the following compilation errors. I don't know how to deal with it because I don't have xlocale in my mind. I don't know why it appears in my program. The original application is from Tornado environment, I can' find such file in the Tornado environment. I guess it appears to my program due to Visual C++, but I wonder how to get rid of such trouble quickly.

C#
1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xlocale(2395): warning C4002: too many actual parameters for macro 'toupper'
1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xlocale(2387): error C2065: '_Last' : undeclared identifier


What I have tried:

I tried to find the connection from my program to such file which causes trouble but in vain. I can't get any answers relative to it by search from the internet.
Posted
Updated 29-Mar-16 21:09pm

1 solution

Header files may include other header files. This happens here. xlocale is a VC internal include file that is included by the xiosbase header file which is in turn included by other files.
If some of your sources includes the locale header file, xlocale will be finally also included.

Because you are porting a program from another platform such problems may occur. But you should not touch the platform specific include files. Instead try to find where your sources use the corresponding function and check the code for compatibility with VC.
 
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