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]
Other format: [Raw text]

Re: GCJ compilation problems


-----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-----


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