I study C++ at college using one of the earliest versions of Code::Blocks (version 1.??).

If I write any programs (all build and run succesfully and use the same GNU C compiler) from home with the latest version (8.02) and open the project and compile/run with earlier version used at college the following error appears (See below):-

Project : project005
Compiler : GNU GCC Compiler (called directly)
Directory : J:\C++ Projects\project005\
Switching to target: Debug
Linking console executable: bin\Debug\project005
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 1 seconds)

This issue is discussed at the code::blocks forum (which I am struggling to join, as authorisation is taking weeks) see link:-

This suggests to add source, but I can see the Project folder, sources directory and main.cpp file from the Manager -> project view.

Anyone got some ideas of what may be the issue?

Difficult to test as I am only at college one day a week.


I had a similar problem in Code::Blocks you cant create an empty project you need to create a console application instead.

Read this for more details.