site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com User-agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) So your solution is to rewrite the C code. What I want is for GCC to behave as indicated in the man pages, and behave as elsewhere, that is not to muck with the symbols by preprending an underscore. Anyone else have any suggestions? - Mike On Nov 16, 2004, at 1:53 PM, Michael Hogsett wrote: I don't know about this. We have some lisp code which calls foreign functions. The foreign function calls fail because all of the symbols have an underscore prepended to their name. ... How do I resolve this other than rewriting our lisp code? This does not occur on Solaris, Linux, or FreeBSD. $ cat foo.c void foo() asm ("foo"); void foo() { } $ gcc -c foo.c $ nm foo.o 00000000 T foo That should work for you. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Steve Checkoway wrote: The -fno-leading-underscore to GCC appears to have no effect. - Steve This email sent to site_archiver@lists.apple.com