• 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: Carbon with UNIX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Carbon with UNIX


  • Subject: Re: Carbon with UNIX
  • From: Ian Krieg <email@hidden>
  • Date: Sun, 16 Jan 2005 14:04:05 -0500


    struct stat sb;
    stat("/tmp", &sb);

I tried a simple test as you suggested and it still failed to work. However, I noticed that you have 'struct stat sb' and I just had 'stat sb'. Once I changed it, the errors went away. I'm assuming that this is a C dialect problem. I can use my original syntax with gcc in Linux or VC++ in Windows with no problems (using the default dialects). If anybody knows off the top of their head about this, let me know. Otherwise, eventually I'll get around to playing with it myself. Edwin V

If the code is compiled as C++, then structs can be referenced without the keyword "struct". If it's compiled as C, you will need the keyword "struct". This is standard, and not Mac-specific.


Ian Krieg
_______________________________________________
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: Carbon with UNIX
      • From: Edwin Vane <email@hidden>
References: 
 >Carbon with UNIX (From: Edwin Vane <email@hidden>)
 >Re: Carbon with UNIX (From: Markus Hitter <email@hidden>)
 >Re: Carbon with UNIX (From: Edwin Vane <email@hidden>)

  • Prev by Date: Re: Carbon with UNIX
  • Next by Date: Re: Carbon with UNIX
  • Previous by thread: Re: Carbon with UNIX
  • Next by thread: Re: Carbon with UNIX
  • Index(es):
    • Date
    • Thread