#Import problems
#Import problems
- Subject: #Import problems
- From: Rob Kuilman <email@hidden>
- Date: Mon, 11 Aug 2003 01:11:40 +0200
Hey all!
I've been working on an Application that, well, inevitably includes
files. back in the 'old' days, one would #ifndef #define #endif a
header file to make sure it would be included only once. However, the
Cocoa manual ensured me, that i could #import "filename.h" without
having to place these guards.
So i have a header file, which declares some global values for me, and
i have to include this file in two files, that include eachother (this
is where the #import guards came into work) but it gave me the
'multiple definitions of...' error.
note: the header file i want to include is just plain C, some
const char myVar = 0x10
et al.
Someone knows what to do ?
Thanks in advace
Robert K.
-----------------------------{ Official Cocoa Newbie!
}-----------------------------
web:
http://halfduplex.net/
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.