Thanks for your valuable comments. The error is due to set DNDEBUG flag in gcc, after removing DNDEBUG flag the program has compiled successfully. That solve my problem. -- View this message in context: http://gcc.1065356.n5.nabble.com/Werror-tp1235149p1235600.html Sent from the gcc - Help mailing list archive at Nabble.com.