Mixed project [message #161343] |
Wed, 04 January 2006 16:50 |
Alessandro Caproni Messages: 21 Registered: July 2009 |
Junior Member |
|
|
Hi all,
I am trying to create an eclipse project for both Java and C++ sources at
the same time.
At the present I have not find any valid solution for that. It seems that
a project can contain only Java o C++ executables, in the sense that I
have the coloured syntax but I have to select one language to have full
functionality on one and only that programming language. For example the
F3 key works for java or for C++ but not for both, depending if I built a
java or a C++ project.
Working with the settings of the project I could easily compile all the
sources with my makefile and my environment and that works.
Can any of you suggest me something to fix this problem?
I have found a lot of info about JDT and C++ but nothing about using both
at the same time...
Ale
Alessandro Caproni
European Southern Observatory (http://www.eso.org)
|
|
|
Re: Mixed project [message #161369 is a reply to message #161343] |
Wed, 04 January 2006 18:56 |
Eclipse User |
|
|
|
Originally posted by: eclipse.dharty.com
I think the best you'll be able to do is have a workspace that contains
a java project (or projects) and separate c projects. You may also be
able to say that a java project depends on a c project or visa versa,
but that may only work on projects of a similar type; never tried. If
this works, I believe the a call to build the "dependent" project will
attempt to build the dependency as well.
I'm not sure how having a combined Java/C++ project will help you much
anyway? You will need to specify different compilers for each set of
source anyway, which it sounds like you are handling in your makefile
but that still doesn't mean you have one java/c++ application. At best
you'll have two separate applications/libraries that interface with each
other.
If you are using JNI to interface to some C code, then create a c
project for the c jni interface and code and a java project that
"depends" on the c project and it should get built anytime you build the
java project. This seems to make more sense from an architectural level
anyway.
good luck
D
Alessandro wrote:
> Hi all,
> I am trying to create an eclipse project for both Java and C++ sources
> at the same time.
> At the present I have not find any valid solution for that. It seems
> that a project can contain only Java o C++ executables, in the sense
> that I have the coloured syntax but I have to select one language to
> have full functionality on one and only that programming language. For
> example the F3 key works for java or for C++ but not for both, depending
> if I built a java or a C++ project.
>
> Working with the settings of the project I could easily compile all the
> sources with my makefile and my environment and that works.
> Can any of you suggest me something to fix this problem?
> I have found a lot of info about JDT and C++ but nothing about using
> both at the same time...
>
> Ale
>
|
|
|
|
|
|
Re: Mixed project [message #161719 is a reply to message #161557] |
Thu, 12 January 2006 10:08 |
Alessandro Caproni Messages: 21 Registered: July 2009 |
Junior Member |
|
|
I don't think it is dangerous. Form the documentation I have read, a
project is defined by its natures (together with some other things) and
what I did was to add some more nature. I had to trik the .project because
there in no tool that allow this at the present.
I am going to write a plugin to authomatize this process for our projects
but I have no idea when I'll have time for that.
Do you have any special reason to say that it is dangerous?
Ale
Alessandro Caproni
European Southern Observatory (http://www.eso.org)
|
|
|
Powered by
FUDForum. Page generated in 0.01468 seconds