I've just started using C and downloaded CodeBlocks gcc compiler. Now everything has been working fine, i.e. I could create simple source code and compile the .c file from either the command line or through CodeBlocks until just recently.
I had a simple program called fairwell.c, compiled to fairwell.exe via the command line by typing
gcc fairwell.c -o fairwell.exe
which displayed the following text:
Goodbye cruel world
I then deleted these fairwell.c and .exe files. Now everytime I try to compile a new .c file at the command line it keeps displaying this text Goodbye cruel world and does not compile the file. I can, however, still compile files directly through CodeBlocks.
Where is the problem?
gcc -Wall -g fairwell.c -o fairwell.exeand running with./fairwell.exe; use the debugger (e.g.gdb) to find bugs. - Basile Starynkevitchtype -a gccorwhich gcc. The onlywherecommand I'm aware of is built into tcsh. - Keith Thompson