c - 如何使用 -lm -pthread 参数在 Netbeans 中编译 C 项目?

标签 c shell unix netbeans

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

最佳答案

右键单击您的项目(在项目树中)并选择“项目属性”。

然后导航到“Build”下的“Compiling”,然后应该有一个字段“Additional Compiler Options”。

关于c - 如何使用 -lm -pthread 参数在 Netbeans 中编译 C 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20924412/

相关文章:

Unix 和 tee — 命令链

unix - Crontab格式化-每15分钟

regex - 我如何在 perl 中像这样 (.+) 为指定的字符串使用正则表达式?

根据值干净地访问结构数组

c - 如何对大数求和?

bash - 我已经重定向了 stdout 和 stderr,为什么我仍然得到一些输出?

android - 在 Linux 中运行/编译 Android 应用程序

c - 在函数调用中使用它时,将值添加到结构中的指针

c++ - gdb: 在 0x2aaaaaaab000 添加的符号文件系统提供的 DSO 中找不到可加载的部分

windows - 如何打开 shell 但仍可以访问 vim