I'm having a problem with compiling a C program in Netbeans. I can complile it with no problem in Shell using this command line: gcc test.c -o test -lm -pthread
. Is it possible to configure Netbeans to compile the project with the -lm
and -pthread
arguments?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Right click on your project (in the project tree) and choose "Project properties".
Then navigate to "Compiling" under "Build" and then there should be a field "Additional Compiler Options".