header file inline causing problems

Ranjit Mathew rmathew@gmail.com
Fri Apr 8 02:22:00 GMT 2005


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/



More information about the Java mailing list