Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » empty project cannot build and cannot find binary.(cdt)
empty project cannot build and cannot find binary. [message #987301] Sun, 25 November 2012 21:13 Go to next message
vectrum gengila is currently offline vectrum gengilaFriend
Messages: 2
Registered: June 2012
Junior Member
I have installed juno and configure include and lib dirs of mingw that
came with Dev-C++ which I installed earlier. Both Dev-C++ with mingw and
eclipse have been installed in C:\Program files\ and I've created workspace
in E:\.

My problem is; I can't build and run project when I create one from
empty project option. It says nothing to build and can't find binary
when I try to run it but, when I use Hello World project then everything
is going fine. It buids, creates exe file and run it.

Please tell me why it can't compile/run project from empty project.
Re: empty project cannot build and cannot find binary. [message #987489 is a reply to message #987301] Mon, 26 November 2012 20:27 Go to previous message
Paul Bußmann is currently offline Paul BußmannFriend
Messages: 17
Registered: October 2012
Junior Member
Works for me:
- Download CDT (I am using Juno Service Release 1)
- Create new "C++ Project" > Executable / Empty Project with Toolchain MinGW GCC. Name it as you like.
- Add new Source File "main.cpp" with contents "int main(){return 0;}"
- Press build:

21:27:59 **** Rebuild of configuration Debug for project EmptyProjectTest ****
Info: Internal Builder is used for build
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o main.o "..\\main.cpp"
g++ -o EmptyProjectTest.exe main.o

21:28:00 Build Finished (took 1s.719ms)

Previous Topic:CMake
Next Topic:do-while not work
Goto Forum:

Current Time: Sun May 27 19:59:01 GMT 2018

Powered by FUDForum. Page generated in 0.02174 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top