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 16:13 Go to next message
vectrum gengila is currently offline vectrum gengila
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 15:27 Go to previous message
Paul Bußmann is currently offline Paul Bußmann
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 Aug 31 00:28:40 EDT 2014

Powered by FUDForum. Page generated in 0.01882 seconds