I´m trying to compile C in eclipse (windows).
I installed CDT, MinGW and set PATH with C:\MinGW\bin, but when compiling an ordinary Hello World, eclipse returns "failed no binaries found".
What i´m doing wrong?
Printable View
I´m trying to compile C in eclipse (windows).
I installed CDT, MinGW and set PATH with C:\MinGW\bin, but when compiling an ordinary Hello World, eclipse returns "failed no binaries found".
What i´m doing wrong?
I've tried using Eclipse with little success. Did you get the C/C++ plugin? That will get you started.
Did you restart? Depending on your version of Windows, you may need to restart Windows or at least Eclipse before the changes to the path take effect.
Yes, i installed CDT plugin and i restarted after changes in PATH, but it did not work.
If you start a new command prompt, and try to compile it from the source directory by hand, does that work?
--
Mats
I use Eclipse extensively. The main problem I had with it originally was that I didn't have the Java RTE, I believe. Once you grab the piece of Java that Eclipse needs, this might clear up the problem for you.
Eclipse is great once you get it working. It has one of the best debuggers I've ever worked with.
Hi JDGATX!
I will also like to use Eclipse for C/C++ development. Currently I use Crimson Editor and MinGW command line tools.
I am running WinXP. Would you give me some advice how to start using Eclipse? :)
Well, here at work, we've got this huge directory of installs and things. Eclipse was available to me here from the start. I don't do a huge amount of programming at home, so I've never had to hunt down the install from anywhere else. I assume (since I believe it is open source) that you should be able to find a copy of the install somewhere. The zip I have here on my machine is eclipse_win32_setup.zip. Install that.
Then you have to make sure you grab the Java JDK. Again, I am not entirely sure where to find that, but a quick google should bring up the latest version.
My includes are listed as:
C:/Program Files/mingw/include and C:/Program Files/mingw/lib/gcc/mingw32/3.4.5/include
Here are the relevant parts of my PATH:
C:\Program Files\mingw\bin;C:\Program Files\Java\jre1.5.0_09\bin\client;C:\Program Files\Java\jre1.5.0_09\bin
Not sure if I've been any help, but I can try to dig around in my settings if you guys have any more questions.
The only time I've gotten that error is when I'm trying to RUN something that I haven't built yet. My usual routine is to set the workspace directory, create a new project, create a new source file, write the code. Then you can either right click on the project and do a "Build Project" or you can go up to Project->Build All.
That probably has nothing to do with the error you're getting, but like I said, I've never seen that error outside of trying to RUN without BUILDing first.
I've build it, but it still not works
From http://forums.fedoraforum.org/forum/...clipse+plugins:
Quote:
Anyway, "no binaries" eh? You're using Eclipse, right? Well did you try to just Run or Debug the program without Compiling and Linking first? (note: sometimes IDEs like Eclipse have a Build command that means Link) Basically you have source code, but haven't translated it into machine code (what the computer understands). If you need more explanation of compiling and linking just ask.
Everything I try to search matching your error message tells me what I've already told you.Quote:
As I said in the previous post, compile and link (might be called "build" in Eclipse), before running or debugging.
What happens is:
You write source code
A compiler translates your source code into machine code that your CPU can understand
A linker then brings in other pre-made machine code that your program requires
You now have an executable binary, this is what you run
Be sure to save the file.
Then do a build all.
Then debug or run.
If you have the CDT, the JDK, MinGW, and Eclipse installed, if you have your project created, and you actually build the thing before running or debugging, AND you're still getting the error, I'm afraid I, and the rest of the internet, have no further ideas for you. Sorry. :(