Forum Discussion
Altera_Forum
Honored Contributor
14 years agoTry adding -Wall (and maybe -Werror) to the compiler options - it might show something that is wrong.
I normally use -O2 -pipe -Wall -Wshadow -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wwrite-strings -fmessage-length=0 -Werror The only troublesome one is -Wsign-compare (migth be included by -Wall) since 'fixing' things is difficult without a cast, and I try to limit the number of casts since they can hide bigger problems.