This is the mail archive of the mailing list for the GCC 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]

GCJ compilation problems

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( has import * statments....(package is

I am getting the following error if I run the programe as

>gcj  -o Mytest 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 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,
 <<javatest.cpp>>  <<test2.h>>  <<>>  <<>> 

Ranga Reddy M
HCL Technologies Limited
J-16,Anna Nagar East
 Chennai 600 102
Phone: +91 44 26264206-309 Fax: +91 44 26281120
		>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

Description: Binary data

Description: Binary data

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