Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT API to request a compile of a single C++ file
CDT API to request a compile of a single C++ file [message #118693] Wed, 01 September 2004 15:23 Go to next message
Eclipse UserFriend
Where should I start looking for ways to be able to programatically
interface with the CDT plug-in to request some C++ file to be compiled,
with certain include and library paths provided?

I'm working on an Eclipse plug-in that lets you create C++ plugins, and
I would like to present, using CDT, a C++ editor (that will come for
free once the CDT is installed), but then be able to, when the user
saves the file, fire off a hard-coded build process (not make driven
unless it has to be), so that if it succeeds I can do something with the
resultant object file, otherwise I can let the CDT plugin report errors
to the user.

I've downloaded the SDK. Any particular locations I should look through?
Any actual API docs, API web reference, Help, or Tutorials ?

Thank you,
- Eddie
Re: CDT API to request a compile of a single C++ file [message #120227 is a reply to message #118693] Wed, 08 September 2004 21:10 Go to previous messageGo to next message
Eclipse UserFriend
It all depends upon the Makefile, which may be supplied by the user (Std
Make).
Thus, we have not provided this interface as of yet.

Sorry,
JC

"Eddie Galvez" <eddie@grassybrook.com> wrote in message
news:ch57dq$le6$1@eclipse.org...
> Where should I start looking for ways to be able to programatically
> interface with the CDT plug-in to request some C++ file to be compiled,
> with certain include and library paths provided?
>
> I'm working on an Eclipse plug-in that lets you create C++ plugins, and
> I would like to present, using CDT, a C++ editor (that will come for
> free once the CDT is installed), but then be able to, when the user
> saves the file, fire off a hard-coded build process (not make driven
> unless it has to be), so that if it succeeds I can do something with the
> resultant object file, otherwise I can let the CDT plugin report errors
> to the user.
>
> I've downloaded the SDK. Any particular locations I should look through?
> Any actual API docs, API web reference, Help, or Tutorials ?
>
> Thank you,
> - Eddie
Re: CDT API to request a compile of a single C++ file [message #120308 is a reply to message #118693] Wed, 08 September 2004 22:20 Go to previous message
Eclipse UserFriend
Originally posted by: lothar.xcerla.com

Eddie Galvez wrote:

> Where should I start looking for ways to be able to programatically
> interface with the CDT plug-in to request some C++ file to be compiled,
> with certain include and library paths provided?

My SCons Builder Plugin is able to issue a compile for a single file.
Although only if you use the SCons build system it provides. It does NOT
work with Makefiles.

(see thread <SCons builder plugin as addon to the CDT>

Lothar
Previous Topic:index include path problems with standard make project
Next Topic:outputs/debug
Goto Forum:
  


Current Time: Mon May 12 05:41:40 EDT 2025

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

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

Back to the top