I'm new to eclipse cdt. I'm wondering how can i add command line argument (e.g.-lm) for compiling
相关问题
- Eclipse and Mylyn : how to disable grey files in t
- Installing Pydev for Eclipse throws error
- Error in Scala Compiler: java.lang.AssertionError:
- How to remove unused imports using Eclipse and not
- Assume/switch role in aws toolkit for eclipse 2.0
相关文章
- selenium+eclipse 打开网页时报错
- Eclipse failing to open
- Eclipse how can I indent C++ preprocessor macros
- Why is FindBugs ignoring my check for null?
- How can I convert a PHP function's parameter l
- Eclipse cleanup - what are the “.index” files - ca
- Compile and build with single command line Java (L
- Eclipse plugin to find out unused methods in a cla
The "correct" way is probably to include these parameters in your Makefile.
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.
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.
Debug-> Debug-Configurations. Select Arguments
-lm include the math library. This is a linker parameters.
Project Proprerties -> C/C++ build -> Settings -> GCC Linker -> Libraries -> "add the library" m