简体   繁体   中英

Enabling C compiler warnings in NetBeans 7

I started using NetBeans for programming in C so I installed Cygwin compiler and set up NetBeans to use it as compiler but when building the project it doesn't show any compiler warnings. I added -Wall and -pedantic options to project settings to use when compiling but while building the project it won't show more than line as as:

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf

and so on but no actual warnings. I was looking all over the settings and I couldn't find anything just yet.

I am kind of new at this so is there a way to do that? Thank you very much!

make doesn't take -Wall -pedantic parameters. Those are compiler parameters, so you probably have to look inside the Makefile-Debug.mk file and add them there. It gets more difficult if this file is automatically generated. Then you have to look further in the NetBeans IDE. But I guess your parameters should already be inside the .mk file..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM