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] |
Hi , I do not have much idea about the gcj. I started working on it.. Could you please let me know about the compilation procedure for the following programs. I am calling java from C++, My C++ programe is here and java programs(test2.java) has import * statments....(package is test.java). I am getting the following error if I run the programe as >gcj -o Mytest test2.java javatest.cpp -lstdc++ -lgcj Undefined first referenced symbol in file temp::test::test() /var/tmp//ccEZC6Eg.o temp::test::class$ /var/tmp//ccEZC6Eg.o ld: fatal: Symbol referencing errors. No output written to 1 collect2: ld returned 1 exit status But, this works fine except only one warning >gcj -o Mytest test2.java test.java javatest.cpp -lstdc++ -lgcj cc1plus: warning: command line option "-ffilelist-file" is valid for Java but not for C++ If there are only one or two import classes I can provide this at command line..But what if my progrmae has buch of import statemnets and classes.!!!! Could you please let me know how to compile the programe Thanks and Regards, Ranga <<javatest.cpp>> <<test2.h>> <<test2.java>> <<test.java>> -------------------------------------------------------------------------- Ranga Reddy M HCL Technologies Limited J-16,Anna Nagar East Chennai 600 102 Phone: +91 44 26264206-309 Fax: +91 44 26281120 ---------------------------------------------------------------------------- - Disclaimer: >This message and any attachment(s) contained here are information that is >confidential, proprietary to HCL Technologies and its customers. Contents may be privileged or otherwise protected >by law. The >information is solely intended for the individual or the entity it is addressed to. If you are >not the intended >recipient of this message, you are not authorized to read, forward, >print, retain, >copy or disseminate this message or any part of it. If you >have received >this e-mail in error, please notify the sender immediately by >return e-mail >and delete it from your computer.
Attachment:
javatest.cpp
Description: Binary data
Attachment:
test2.h
Description: Binary data
Attachment:
test2.java
Description: Binary data
Attachment:
test.java
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |