如何找到从我的程序到Microsoft的xlocale的包含路径? [英] How to find the inclusion path from my program to Microsoft's xlocale?

查看:120
本文介绍了如何找到从我的程序到Microsoft的xlocale的包含路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在向Windows移植VxWorks / Tornado应用程序;使用VC ++ 2012构建。我当然必须设置原始应用程序的头文件夹的包含路径。但是我没有设置包含文件夹来覆盖

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

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include





我收到以下编译错误。我不知道如何处理它,因为我脑子里没有xlocale。我不知道为什么它出现在我的程序中。原始应用程序来自Tornado环境,我可以在Tornado环境中找到这样的文件。我想我的程序似乎是由于Visual C ++,但我想知道如何快速摆脱这种麻烦。





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.

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.

推荐答案

头文件可能包含其他头文件。这发生在这里。 xlocale 是一个VC内部包含文件,它包含在 xiosbase 头文件中,而该文件又包含在其他文件中。

如果你的某些人来源包括 locale 头文件, xlocale 最终也会被包含在内。



因为你正在移植一个程序从另一个平台可能会出现这样的问题但是你不应该触摸平台特定的包含文件。而是尝试查找源使用相应函数的位置,并检查代码是否与VC兼容。
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.


这篇关于如何找到从我的程序到Microsoft的xlocale的包含路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆