User forums > Help

Could not compile

(1/1)

Anvilsmith:
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?

tiwag:
you obviously don't have any source file added to the target which you're going to build.

Anvilsmith:
Ah, right. I forgot to add main.cpp to the project. Sorry for coming in here with something so trivial, then.

Angel Portal:
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

Navigation

[0] Message Index

Go to full version