如何在devenv命令行中添加预处理器#define? [英] how do I add preprocessor #define in devenv command line?

查看:143
本文介绍了如何在devenv命令行中添加预处理器#define?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在devenv命令行中添加额外的预处理器#define?

Is there a way to add extra preprocessor #define in devenv command line?

推荐答案

我不确定vcbuild命令行的含义,但是如果您是Visual C ++命令行编译器,则可以通过添加/Dxxxx添加定义,例如

I am not entirely sure what you mean by vcbuild command line but if you mean the Visual C++ command line compiler then you can add defines by add /Dxxxx, e.g.

cl.exe /DSHAREWARE ....

基于评论的其他答案:

您应该能够使用额外的预处理器定义来设置CL环境变量:

You should be able to set the CL environment variable with the extra preprocessor define:

SET CL=/DSHAREWARE
devenv ....

仅可以在 MSDN

这篇关于如何在devenv命令行中添加预处理器#define?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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