GCJ compilation problems

Michael Koch konqueror@gmx.de
Tue Jun 1 10:54:00 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Dienstag, 1. Juni 2004 12:42 schrieb Ranga Reddy M - CTD ,Chennai.:
> Hi Michael,
>
> Thanks for the reply,
>
> I already have compiled SDK in java with me.. I want to call the
> Java SDK from C++.
>
> >gcj -o test test.o test2.o javatest.o
>
> Yes , this works .
>
> But if I have a lot of classes imported(import org.apache.*;) in my
> test2.java then do I need to compile all the classes and provide
> them..Please find here the code below

You can compile whole jar files to one .o at once too.

gcj -c some.jar

Note that resources are not added automatically this way. You will 
find more about this in GCJ info pages.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAvGB3WSOgCCdjSDsRArbiAJ9P0/XTeks0LWKq3iEBT3+1nQzT+QCdHe0t
znabfs6TZLDAJ7bDsNzomas=
=N9+X
-----END PGP SIGNATURE-----



More information about the Java mailing list