• 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
Re: macro problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: macro problem


  • Subject: Re: macro problem
  • From: Programmingkid <email@hidden>
  • Date: Sat, 20 Nov 2010 20:07:22 -0500

They are unwanted because they cause an error when I try to run my program. The error says the two symbols are not found in libSystem.b.dylib.

On Nov 20, 2010, at 3:27 PM, Patrick Rutkowski wrote:

> Firstly, the C and C++ reserve all symbols with two underscores for the compiler and for system headers; it's their namespace.
>
> Secondly, why are they unwanted? What makes you think they're causing your program to crash?
>
> -Patrick
>
> On Nov 20, 2010, at 1:26 PM, Programmingkid wrote:
>
>> There is some code in stdio.h that adds the unwanted symbols __stdoutp and __stderrp to my program. The code that does this is this:
>>
>> __BEGIN_DECLS
>> #if __DARWIN_UNIX03
>> 	extern FILE * __stdoutp;
>> 	extern FILE * __stderrp;
>> #else
>> 	extern FILE __sF[];
>> #endif
>> __END_DECLS
>>
>>
>> The __stdoutp and __stderrp variables causes my program to crash. Is there some kind of command line option I can give to gcc to stop these variables from being added to my program? In case your curious, __DARWIN_UNIX03 is defined in cdefs.h. _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: macro problem
      • From: Scott Ribe <email@hidden>
References: 
 >macro problem (From: Programmingkid <email@hidden>)
 >Re: macro problem (From: Patrick Rutkowski <email@hidden>)

  • Prev by Date: Re: multiple c command line targets
  • Next by Date: Re: macro problem
  • Previous by thread: Re: macro problem
  • Next by thread: Re: macro problem
  • Index(es):
    • Date
    • Thread