This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

C++ Eclipse plug-in

 
Joe Cuppa
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to switch compilers. I downloaded Eclipse and am able to get Java code to compile. I also downloaded the C++ plug-in; however, I can't get the C++ code to compile.

I suppose I have to "hook Eclipse up" to some C++ compiler. I downloaded a gcc compiler. Now my problem is in setting up all the paths to tell Eclipse where to find the includes, the compiler exe, and the like.

Does anyone have some (detailed) steps how to do set this up?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe,
Google found this walkthrough. It looks promising.
 
Joe Cuppa
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've downloaded and installed Cygwin, the CDT, and Eclipse. I've also set my system PATH varible for XP. I can get a "Hello world" program to compile and run from the command line, but I can't get it to build in Eclipse.

Here's the error I get in Eclipse:


I suppose I have to set some properties in Project->Properties.
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you recommend any particular free c++ compiler to use in Eclipse
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic