CDT with different Compilers [message #156872] |
Thu, 27 October 2005 13:18 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04436 seconds