Eclipse CDT的命令行输入 [英] eclipse cdt command line input
问题描述
我是新来CDT蚀。我想知道我怎么可以编译添加命令行参数(例如-LM)
I'm new to eclipse cdt. I'm wondering how can i add command line argument (e.g.-lm) for compiling
推荐答案
正确的方法可能是在您的Makefile这些参数。
The "correct" way is probably to include these parameters in your Makefile.
但是,如果你手动调用编译器,你应该可以设置该项目通过右键单击参数,选择属性,选择C / C ++编译,在左边的菜单项,编辑Build命令文本字段。
But if you're invoking the compiler manually, you should be able to set arguments by right-clicking on the project, selecting "Properties", choosing the "C/C++ Build" entry on the menu at the left, and editing the "Build command" text field.
根据你在系统上,你可能也选择生成变量子项下的C / C ++编译,并设置他们CFLAGS / CPPFLAGS。并不是每一个设置需要的考虑,虽然。
Depending on the system you're in, you could potentially also choose the 'Build Variables' subentry under "C/C++ Build" and set them in CFLAGS/CPPFLAGS. Not every setup takes those into account, though.
这篇关于Eclipse CDT的命令行输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!