如何使用-lm -pthread参数在Netbeans中编译C项目? [英] How to compile a C project in Netbeans using -lm -pthread arguments?

查看:81
本文介绍了如何使用-lm -pthread参数在Netbeans中编译C项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Netbeans中编译C程序时遇到问题.我可以使用以下命令行在Shell中毫无问题地进行编译:gcc test.c -o test -lm -pthread.是否可以配置Netbeans以使用-lm-pthread参数编译项目?

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?

推荐答案

右键单击您的项目(在项目树中),然后选择项目属性".

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".

这篇关于如何使用-lm -pthread参数在Netbeans中编译C项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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