This is the mail archive of the gcc-help@gcc.gnu.org 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]

Re: Forward declaration of classes needed when using GCJ?


Andrew W wrote:
Fair enough but that doesnt actually address the problem. Its ClassB it doesnt like.


You are probably using an older gcj. You didn't say which version.


Try setting the classpath for gcj, perhaps it cannot find the other class.

David Daney


David Daney wrote:

That should be:
gcj --main=net.mydomain.core.ClassA ./net/mydomain/core/ClassA.java ./net/mydomain/core/ClassB.java


David Daney

______________________________________________________________________




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