Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT with different Compilers
CDT with different Compilers [message #156872] Thu, 27 October 2005 13:18 Go to next message
Eclipse UserFriend
Originally posted by: jan.potthast.name

Hello,

I would like to use CDT with different compilers. I have seen in eclipse
under Project -> C/C++Build the possibility to generate various
configurations. But the configuration switches define only GNU Compiler
switches. Is there a possibility to use this grafical menu for other
compilers like Visual compiler or Borland compiler?

Greetings

Jan
Re: CDT with different Compilers [message #156901 is a reply to message #156872] Thu, 27 October 2005 23:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.dharty.com

I'm not sure what you mean by

Project -> C/C++Build

but I've been able to set up the project make options to use several
different compilers.

Project->Properties->C/C++ Make Project->Make Builder Tab.

Typically this involves a "hack" to first tell the system not to use the
default build command "make" and instead use your compiler or build
tool. EG. gbuild.exe is a tool Green Hills uses to build their
proprietary projects so I change the build command from make to

gbuild.exe HELMSMAN.gpj

where Helmsman.gpj is the project file. Then you can pass different
switches into the Build, Rebuild and Clean builds depending on your
compiler.

You can also use Make targets to do the same thing, with a bit of extra
extendability:

Here is a sample make target that builds a given project in a given
solution..

Target Name:
VSProject

Make Target:
FlightSoftware.sln /build debug /project FlightSim.vcproj

Build Command:
c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.com


Here is a sample using the gbuild command

Target Name:
HELMSMAN-All

Make Target:
HELMSMAN.gpj

Build Command:
gbuild.exe -all


Of course in this case, gbuild is on my path.

HTH

David






Jan wrote:
> Hello,
>
> I would like to use CDT with different compilers. I have seen in eclipse
> under Project -> C/C++Build the possibility to generate various
> configurations. But the configuration switches define only GNU Compiler
> switches. Is there a possibility to use this grafical menu for other
> compilers like Visual compiler or Borland compiler?
>
> Greetings
>
> Jan
>
Re: CDT with different Compilers [message #156992 is a reply to message #156872] Fri, 28 October 2005 23:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bjcbell.gmail.com

Jan wrote:
> Hello,
>
> I would like to use CDT with different compilers. I have seen in eclipse
> under Project -> C/C++Build the possibility to generate various
> configurations. But the configuration switches define only GNU Compiler
> switches. Is there a possibility to use this grafical menu for other
> compilers like Visual compiler or Borland compiler?
>
> Greetings
>
> Jan
>

Jan,
If you are using Standard Build, just write a makefile to use whatever
tool you want. If you are using managed build, you can write a plug in
to work with your tool, Check out
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/cdt-home /user/Reference%20Documents/Managed_Build_21/Managed_Build_E xtensibility.html?cvsroot=Tools_Project
(Sorry for the long URL). It has instructions on how to create your own
plug in.
Re: CDT with different Compilers [message #157161 is a reply to message #156872] Mon, 31 October 2005 21:53 Go to previous messageGo to next message
Mark Fortner is currently offline Mark FortnerFriend
Messages: 11
Registered: July 2009
Junior Member
I have a similar problem and have been experimenting with an
Ant plugin called cc http://ant-contrib.sourceforge.net/cc.html.

It has a lot of promise. It would be nice though, if the
"Managed Make" option that we have, would actually create
Ant build files instead of make files. This would benefit
both the C++ developers and the Java developers.

Regards,

Mark Fortner

Jan wrote:
> Hello,
>
> I would like to use CDT with different compilers. I have seen in eclipse
> under Project -> C/C++Build the possibility to generate various
> configurations. But the configuration switches define only GNU Compiler
> switches. Is there a possibility to use this grafical menu for other
> compilers like Visual compiler or Borland compiler?
>
> Greetings
>
> Jan
>
Re: CDT with different Compilers [message #639566 is a reply to message #156901] Tue, 16 November 2010 22:33 Go to previous message
oscar  is currently offline oscar Friend
Messages: 3
Registered: November 2010
Junior Member
I have my default.gpj project in Multi from Green Hills and I would like to know how I can integrate this project in eclipse. I'm using eclipse Helios and I've imported my Green Hills libraries to eclipse. I can make a green Hills project from eclipse and I add my BSP version and other features but when I build the project, there are errors and i don't know why? Someone can help me?

Regards,

oscar.
Previous Topic:Parsing Green Hills Build output in Eclipse
Next Topic:Debugging Matlab mex files (c/c++) within Eclipse
Goto Forum:
  


Current Time: Sat Nov 09 04:12:59 GMT 2024

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

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

Back to the top