This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: compile native Methods in a package


>>>>> "Stefan" == Stefan Wanner <stefan.wanner@gmx.ch> writes:

Stefan> 	gcj -C path/to/myprog.java
Stefan> 	gcjh path/to/myprog
Stefan> 	gcj -c path/to/myprog.class -o path/to/myprog.o
Stefan> 	g++ -c path/to/myprognat.cc -o path/to/myprognat.o

I tried this example.  It worked fine for me.
Does it work for you?
Is your version of g++ the same as your version of gcj?
What system are you using?

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]