header file inline causing problems
Steve Pribyl
steve@netfuel.com
Fri Apr 8 03:48:00 GMT 2005
Interesting
4.0.0 Linux generates W for getName in natj.o.
4.0.0 Mingw generates T for getName in natj.o
Looks like something like this may need to go into mingw32.h?
/* GNU as supports weak symbols on PECOFF. */
#ifdef HAVE_GAS_WEAK
#define ASM_WEAKEN_LABEL(FILE, NAME) \
do \
{ \
fputs ("\t.weak\t", (FILE)); \
assemble_name ((FILE), (NAME)); \
fputc ('\n', (FILE)); \
} \
while (0)
#endif /* HAVE_GAS_WEAK */
Steve
Ranjit Mathew wrote:
> 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.
>
--
Steve Pribyl
Steve AT NetFuel dot com
Computer Infrastructure Practitioner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4706 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://gcc.gnu.org/pipermail/java/attachments/20050408/ed60dc59/attachment.bin>
More information about the Java
mailing list