• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
-fno-leading-underscore
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-fno-leading-underscore


  • Subject: -fno-leading-underscore
  • From: Michael Hogsett <email@hidden>
  • Date: Tue, 16 Nov 2004 13:53:52 -0800


The -fno-leading-underscore to GCC appears to have no effect.

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.

e.g.

[dh-7-13] [hogsett] [~]
 --> gcc -fno-leading-underscore -c -o foo.o foo.c
[dh-7-13] [hogsett] [~]
 --> nm foo.o
0000003c b _b.0
00000000 T _foo
[dh-7-13] [hogsett] [~]
 --> gcc -c -o foo.o foo.c
[dh-7-13] [hogsett] [~]
 --> nm foo.o
0000003c b _b.0
00000000 T _foo

How do I resolve this other than rewriting our lisp code?  This does
not occur on Solaris, Linux, or FreeBSD.

 - Mike


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: -fno-leading-underscore
      • From: Godfrey van der Linden <email@hidden>
    • Re: -fno-leading-underscore
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Re: Intercepting file system calls (read, write, open, close, etc)
  • Next by Date: Re: Intercepting file system calls (read, write, open, close, etc)
  • Previous by thread: Re: trying to find right list
  • Next by thread: Re: -fno-leading-underscore
  • Index(es):
    • Date
    • Thread