#pragma once
#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.