Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Where to call external compiler
Where to call external compiler [message #324651] Wed, 30 January 2008 01:29 Go to next message
Eclipse UserFriend
Originally posted by: weber.lars.googlemail.com

Hi!

I want to call an external command line compiler like gcc or dmd.
The question is, where to put this compiler call?

A org.eclipse.core.resources.ICommand or is there a better place?

Also I found no code example on koders.com how the call is made and the
output is rerouted into the eclipse console.

Greetings from Germany,
Lars
Re: Where to call external compiler [message #324652 is a reply to message #324651] Wed, 30 January 2008 01:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Lars Weber" <weber.lars@googlemail.com> wrote in message
news:1fc1b9c8b511264fd5c7235ef5888630$1@www.eclipse.org...
> Hi!
>
> I want to call an external command line compiler like gcc or dmd.
> The question is, where to put this compiler call?

Normally, this would either be part of your configured toolchain (assuming
that you are working on a C/C++ project and have installed and configured
the CDT component of Eclipse).

If you're not working on a C/C++ project, but just need to be able to invoke
a command line utility, you might use the External Tools menu item.

If you need to invoke it as part of a build, perhaps the right answer is to
wrap the command into an ant script, invoked either by right-clicking the
ant script or, again, via the External Tools menu.

If these answers are not making sense, please provide some additional detail
about what you're trying to do and why.
Re: Where to call external compiler [message #687811 is a reply to message #324652] Thu, 23 June 2011 09:46 Go to previous message
Siddharth Bora is currently offline Siddharth BoraFriend
Messages: 4
Registered: May 2011
Junior Member
I have a similar task to perform wherein which I am creating a plugin for a new language. Now I have a simulator for this language already available in OCaml and I have created an editor for this language as a plugin in eclipse.
Now how do i put a button that will say Simulate on the editor that compiles the file that is open. I mean how do i call the simulator for which the terminal command I know.
Hope someone replies.
Thanks
Previous Topic:How to install all needed plugins for a workspace
Next Topic:why does the AbstractPreferenceInitializer never get called?
Goto Forum:
  


Current Time: Thu Apr 25 10:04:30 GMT 2024

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

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

Back to the top