Why does my C code work fine in onlineGDB but not work when compiled with gcc?

0 votes
asked Jul 1, 2018 by anonymous
There are no compiler errors, but the program does not work despite being the same exact code. It's compiled with

>gcc -Wall -Wextra -Werror


1 Answer

0 votes
answered Jul 1, 2018 by jay

-Werror  might be causing trouble for you. Since it would report all warning as an error, you compilation would fail even if it had just warning. 
Where as, in OnlineGDB it would be treated as just warning and compilation go ahead.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.