设置默认的NetBeans选项(-std = C99,-Wall)C程序 [英] Setting Default NetBeans Options (-std=c99, -Wall) for C programs

查看:234
本文介绍了设置默认的NetBeans选项(-std = C99,-Wall)C程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 NetBeans 6.9中安装在Ubuntu Linux 11.10做工精细。我的目标是将编译器选项 -Wall -std = C99 是默认情况下使用。目前,我需要右键点击我的项目 - >属性 - > C编译器 - >警告级别为更多警告,并添加 -std = C99 其他选项。这显然​​是一个痛苦创建多个项目时,和我敢肯定有一种方法,使这一切的默认

I have NetBeans 6.9 installed and working fine on Ubuntu Linux 11.10. My goal is to set compiler options like -Wall and -std=c99 to be used by default. Currently, I have to right click on my project -> Properties -> C Compiler -> Warning Level to "More Warnings" and add -std=c99 to Additional Options. This is obviously a pain when creating many projects, and I'm sure there is a way to make all of this the default.

我发现它密切相关,我的问题这个线程。不过,唯一的答案涉及到安装code ::块和MSYS 1.0.11,这并没有太大的意义了我。我不知道如何安装另一个IDE会帮助我,似乎MSYS不必要的,因为我已经在使用Linux操作系统。

I found this thread which relates closely to my question. However, the only answer involves installing Code::Blocks and MSYS 1.0.11, which doesn't make much sense to me. I don't see how installing another IDE will help me, and MSYS seems unnecessary, as I am already using Linux.

我曾尝试一切合理的搜索词我能想象,并且感到非常惊讶信息怎么一点我已经止跌回升。这似乎是谁使用的NetBeans应该在某个时候改变这个类型的东西大多数人。条款我在寻找:'的NetBeans -std = C99默认NetBeans的设置默认编译选项如何让NetBeans的默认使用C99 'code :: Blocks的设置到NetBeans

I have tried every reasonable search term I can imagine, and am very surprised how little info I have turned up. It seems like most everyone who uses NetBeans should have to change this type of thing at some point. Terms I'm searching for: 'NetBeans -std=c99 default', 'NetBeans set default compile options', 'how to make NetBeans use c99 by default' and 'Code::Blocks settings into NetBeans'.

请,有人点我在正确的方向,或者告诉我,我应该寻找。我想,别人有同样的问题,所以我希望这个线程是很有帮助的。

Please, someone point me in the right direction, or tell me what I should be searching for. I imagine that others have this same question, so I hope this thread is helpful.

推荐答案

下面是一些不同的东西,你可以做:

Here are some different things that you can do:


  1. 复制和共享项目之间的配置文件,这样你就不必设置每一个设置。

  2. 创建一个默认的项目,但是配置你喜欢它。当你想创建一个新的项目,只需复制默认的项目,并将其重命名为别的东西。

  3. 修改您的工具链的属性。

有关详细信息,请点击这里:

For details, see here:

<一个href=\"http://stackoverflow.com/questions/4114042/netbeans-settings-for-gcc/11643274#11643274\">NetBeans海湾合作委员会设置

这篇关于设置默认的NetBeans选项(-std = C99,-Wall)C程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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