Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Problems running a makefile for a Java->C Project
Problems running a makefile for a Java->C Project [message #188228] Wed, 28 March 2007 05:21
Eclipse UserFriend
Originally posted by: irina-alexandra.nicolae.eads.com

Hi,
i have few knowledge about eclipse and how to configure it but it seems
that i cannot handle this problem that i have on my own, and thus i am
asking for yout help.
i am using Eclipse 3.2.2, CDT, MinGW on a Windows XP OS. My problem would
be the following. I am trying to link a java file to C/C++ files (with
some c or c++ written functions) using Eclipse through "Convert to a C/C++
Make Project". I first create the java file, then I convert the project as
stated above. Then write a short makefile, which looks something like this
:

all : example.dll

example.h : example.class
javah -jni example

example.o : example.c example.h
gcc -I"C:\Programme\Java\jdk1.6.0\include"
-I"C:\Programme\Java\jdk1.6.0\include\win32" -c example.c -o example.o

example.dll : example.o example.def
gcc -shared -o example.dll example.o example.def

clean :
-del example.h
-del example.o

When I compile the project the following message appears in the console :

mingw32-make -f makefile all
mingw32-make: *** No rule to make target `example.class', needed by
`example.h'. Stop.

What is going on?

Hopefully you will get back to me as soon as possible.
Thanks!
Previous Topic:Make project
Next Topic:Multi launch targets' names making you crazy???
Goto Forum:
  


Current Time: Fri Apr 25 19:36:58 EDT 2025

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

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

Back to the top