GCJ compilation problems

Ranga Reddy M - CTD ,Chennai. rangareddym@ctd.hcltech.com
Tue Jun 1 09:47:00 GMT 2004


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: javatest.cpp
Type: application/octet-stream
Size: 325 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040601/f02b3eb7/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.h
Type: application/octet-stream
Size: 378 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040601/f02b3eb7/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.java
Type: application/octet-stream
Size: 154 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040601/f02b3eb7/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.java
Type: application/octet-stream
Size: 144 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040601/f02b3eb7/attachment-0003.obj>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /