Eclipse CDT: Binary File Not Found

This is a discussion on Eclipse CDT: Binary File Not Found within the C++ Programming forums, part of the General Programming Boards category; I'm sorry if my question sames with many others on Internet, but I still cannot fix it. I'm using Windows ...

  1. #1
    hqt
    hqt is offline
    Registered User
    Join Date
    Aug 2011
    Posts
    115

    Question Eclipse CDT: Binary File Not Found

    I'm sorry if my question sames with many others on Internet, but I still cannot fix it.
    I'm using Windows 7 64 bit and Eclipse 64 bit version,too
    My problem is: I cannot compile a C++ program (HelloWorld program) on Eclipse/CDT. When I build, there is no exe file in bin directory (just has source code). After I build, I run will has an error: "Binary file not found".

    I have do some tips when google but still cannot (for example: choose Windows PE Parser/Cygwin Parser)

    I have put MinGW(32 bit) and Cygwin 's bin directory into Windows Path. And When I use Code::Block, I can compile nicely.
    I have MinGW(64 bit) and put into Path to, but don't know how to Eclipse see this.

    Please help me about this very annoying problem

    Thanks
    Last edited by hqt; 04-03-2012 at 10:43 AM.

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Posts
    2,599
    Well, if you had bothered to read the documentation, you'd have known that you have to set up Run configurations, pointing to the executable (or script) .
    (It will be in Debug ..or something similar folder)
    Last edited by manasij7479; 04-03-2012 at 10:54 AM.

  3. #3
    hqt
    hqt is offline
    Registered User
    Join Date
    Aug 2011
    Posts
    115
    Can you tell me more clearer, please.
    Thanks

  4. #4
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    There is a "Help" on the menu bar but it is sort of obtuse. It also breaks if you use Juno with JDK 7 (groan).

    Click Run->Run Configurations. At the top of the Main tab you'll see "C/C++ Application:" and a blank text input. Press the "Search Project" button next to it. It will most likely find the exe in the project's Debug/ directory (the other possibility is the Release/ directory).

    If it doesn't find it, you didn't build it. Click the little hammer, not the run button.

    What's wrong with code::blocks, BTW? I have not used it, but I wouldn't recommend eclipse to anyone, either...
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  5. #5
    hqt
    hqt is offline
    Registered User
    Join Date
    Aug 2011
    Posts
    115
    @MK27: I have built it (built in Menu Project) or use Harmer as you say. After build it, I don't see any exe file in Debug folder. (I choose Debug Build).
    Please tell me more .

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Do not append if found in the binary file?
    By Siaw Ys in forum C Programming
    Replies: 3
    Last Post: 12-08-2011, 02:44 AM
  2. Need Help: end of file found before....
    By kamitsuna in forum C++ Programming
    Replies: 5
    Last Post: 02-24-2010, 01:23 PM
  3. Cant get binary search to return found numbers
    By erekose in forum C Programming
    Replies: 4
    Last Post: 10-09-2009, 04:28 PM
  4. Qt C++ Eclipse : debug\*.exe not found
    By threaderslash in forum C++ Programming
    Replies: 0
    Last Post: 08-20-2009, 04:31 AM
  5. Symbol file not found for *.ko
    By yanglei_fage in forum Linux Programming
    Replies: 3
    Last Post: 03-30-2009, 08:48 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21