Building shared objects with gcj on osx
jym@Cs.Nott.AC.UK
jym@Cs.Nott.AC.UK
Sat Mar 5 12:15:00 GMT 2005
Thanks for your help andi ...
> I use both -shared -bundle and it seems to work for the python extension
> I'm building. I also used these flags at times:
> -undefined suppress -flat_namespace -multiply_defined suppress
>
-shared -bundle produced
bash-2.05a$ gcj -shared -bundle -o helloworld.so Test.java
/usr/bin/ld: Undefined symbols:
___eprintf
_environ
collect2: ld returned 1 exit status
but...
bash-2.05a$ gcj -shared -bundle -undefined suppress -flat_namespace -o
helloworld.so Test.java
built fine. (for anyone else trying this)
Is -undefined suppress causing the eprintf and environ symbols to be
ignored, and if so, what is lost because of this? Is there any info as to
why these symbols are included in the object file, and as to why they're
not linkable in OSX?
Many thanks for your help, off to play with my new .so
J
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
More information about the Java
mailing list