Page 1 of 1

issue with using a makefile to compile project

Posted: 11 Jan 2013 04:55
by eecs
Hello,

I have been successfully using cygwin's port of the linux "make" command to compile my project with a makefile from the command line. However, I have run into one slightly annoying problem. If the compile is unsuccessful (i.e. there is a bug in my code) the compiler still finishes with a successful error code which fools "make" into thinking the project has successfully compiled. Is there anyway to get the compiler to exit with an error code other than zero when it is unsuccessful?

Thanks,

John Fitz