Code::Blocks Forums

User forums => Help => Topic started by: Anvilsmith on July 24, 2006, 08:02:15 am

Title: Could not compile
Post by: Anvilsmith on July 24, 2006, 08:02:15 am
Project   : Console application
Compiler  : GNU GCC Compiler (called directly)
Directory : D:\C++\CodeBlocks\projects\
--------------------------------------------------------------------------------
Switching to target: default
mingw32-g++.exe    -LD:\C++\CodeBlocks\lib -o D:\C++\CodeBlocks\projects\console_test.exe       
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

I had installed Code::Blocks yesterday, and everything was going fine. Then I started it again this morning, and wound up unable to build.
I somehow suspect the lack of a space between "-L" and the directory in the command line is what's causing all this. I'll read up on how I can install a nightly build, hoping that this'll fix it, but... Is there any way I can tinker with this command line myself?
Title: Re: Could not compile
Post by: tiwag on July 24, 2006, 08:10:30 am
you obviously don't have any source file added to the target which you're going to build.
Title: Re: Could not compile
Post by: Anvilsmith on July 24, 2006, 08:27:58 am
Ah, right. I forgot to add main.cpp to the project. Sorry for coming in here with something so trivial, then.
Title: Re: Could not compile
Post by: Angel Portal on July 24, 2006, 09:08:43 pm
I suppose you downloaded the compiker too.
Because if you download C::B with MingW they
dont come with mingw32-g++ per exemple!
Another point: main.cpp it just created by any type
of projected created I guess.
I am reading about the mingw , because I will need to
compile the wxWidgets too, before stating making soft
with the IDE.
The console however worked fine!
Angel Portal