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: header file inline causing problems


Steve Pribyl wrote:
> I don't think I am going be able to duplicate this using the cross-compiler.
> I have created a simple test case.  Since the cross compiler does not have a 
> libgcj.a, I have hacked in the one created by the cross compilier. This libgcj.a 
> still has this problem but this test case does not bring out the problem.
> 
> Is there anything else I can do to figure/help figure this out.  Is seems that 
> it might be specific to building the compiler.

I think "#pragma interface/implementation" is the key.

Try putting "#pragma interface" in the header file ("j.h"?).

Try putting "#pragma implementation" in the implementation
file ("natj.cc"?).

#include "j.h" in another file, say "main.cc" and use
the "getName()" method there.

HTH,
Ranjit.

-- 
Ranjit Mathew       Email: rmathew AT gmail DOT com

Bangalore, INDIA.     Web: http://ranjitmathew.hostingzero.com/


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