• 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
#pragma once
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#pragma once


  • Subject: #pragma once
  • From: "Philippe Casgrain" <email@hidden>
  • Date: Wed, 21 Apr 2004 17:19:54 -0400
  • Thread-topic: #pragma once

Hello,

My projects are five Xcode projects generating static libraries, and one
application that uses these libraries. In all my code I use the #pragma
once directive to include a header file only once.

In all cases except one, the compiler respects the #pragma once
directive and builds the library. In one case, though, I get lots of
"already defined" errors, which shows that the #include directives are
being processed more than once. I can remove some of the errors by using
guards (e.g. #ifndef FOO #define FOO #endif) but we moved to #pragma
once a while ago and I don't want to undo that.

The wierdest part is, this used to work yesterday. Now, it doesn't.

Does anybody have any ideas?

Thanks,

Philippe

--
If there is a disclaimer below this line, it was added automatically by
an email gateway and there is nothing I can do about it :-(
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: NSLog won't go to run log window
  • Next by Date: Re: Where is _sqrtf?
  • Previous by thread: Re: NSLog won't go to run log window
  • Next by thread: bug in XCode?
  • Index(es):
    • Date
    • Thread