Platform Builder 命令行构建

发布于 2024-07-05 00:07:34 字数 425 浏览 8 评论 0 原文

我正在使用 WinCE 平台构建器从命令行构建一个项目,并且我需要启用 RTTI,以便我的项目正常工作。 我尝试在源代码和每个目录的 makefile 中设置选项 RTTI="YES",并且我还尝试将其添加到 CDEFINES 的末尾,但是当我尝试构建该项目,收到 D9025 警告,其中表示我的 "/GR 被 /GR- 覆盖”(启用 RTTI 被不启用 RTTI 覆盖)< /代码>。 我的问题是,如何找到该选项的设置位置,以便我可以修改它?


问题是我们只将源复制到某些目录,我们在名为“sources”的文件中指定它们,然后通过发出以下命令继续构建: build

我想要什么知道的是,构建从哪里获取它的选项? 文件的名称是什么?

I'm building a project from the command line using WinCE platform builder, and I need RTTI to be enabled, so that my project works correctly. I tried setting the option RTTI="YES" in the sources and in the makefile of each dir, and I also tried to add it at the end of CDEFINES, but when I try to build the project, I get the D9025 warnings, which says that my "/GR was overriden by /GR-" ( enable RTTI was overriden by don't enable RTTI ).
My question is, how can I find out where that option is set, so that I can modify it?


The thing is that we only copy the sources to some dirs, we specify them in a file named "sources", and then we proceed with the build by issuing the following command: build

What I would like to know is, where is build taking it's options from? What is the name of the file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

偏闹i 2024-07-12 00:07:35

首先查看sources.cmn,它是整个构建系统的通用源文件。 如果不存在,请记住每个 SOURCES 文件都可以更改其文件夹的编译器变量,而且 makefile 也可以更改内容。 为了增加乐趣,系统和平台构建批处理文件还可以使用环境变量,从而可以调整设置。

Start by looking in sources.cmn, which is a common sources file for the entire build system. If it's not there, keep in mind that every SOURCES file can alter compiler variables for it's folder, plus the makefiles can also alter things. To add to the fun, the system and platform build batch files can also play with environment variables, that in turn may adjust settings.

荒人说梦 2024-07-12 00:07:34

命令行警告 D9025

如果两个选项指定了矛盾或不兼容的指令,则使用命令行最右边的选项中指定或暗示的指令。

如果从开发环境编译时收到此警告,并且不确定冲突选项来自何处,请考虑以下事项:

可以在代码中或在项目的项目设置中指定选项。 如果您查看编译器的命令行属性页,并且在“所有选项”字段中看到冲突的选项,则这些选项是在项目的属性页中设置的,否则,这些选项是在源代码中设置的。

如果在项目的属性页中设置了选项,请查看编译器的预处理器属性页(在解决方案资源管理器中选择项目节点)。 如果您在此处没有看到该选项设置,请检查每个源代码文件(在解决方案资源管理器中)的预处理器属性页设置,以确保它未添加到此处。

如果选项是在代码中设置的,则可以在代码中或在 Windows 标头中设置。 您可以尝试创建一个预处理文件 (/P) 并在其中搜索该符号。

参考: http://msdn.microsoft.com/en -us/library/8k3f51f1(vs.80).aspx

Command-Line Warning D9025

If two options specify contradictory or incompatible directives, the directive specified or implied in the option farthest to the right on the command line is used.

If you get this warning when compiling from the development environment, and are not sure where the conflicting options are coming from, consider the following:

An option can be specified either in code or in the project's project settings. If you look at the compiler's Command Line Property Pages and if you see the conflicting options in the All Options field then the options are set in the project's property pages, otherwise, the options are set in source code.

If the options are set in project's property pages, look on the compiler's Preprocessor property page (with the project node selected in the Solution Explorer). If you do not see the option set there, check the Preprocessor property page settings for each source code file (in Solution Explorer) to make sure it's not added there.

If the options are set in code it could be set either in code or in the windows headers. You might try creating a preprocessed file (/P) and search it for the symbol.

reference: http://msdn.microsoft.com/en-us/library/8k3f51f1(vs.80).aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文