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

#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.
  • Follow-Ups:
    • Re: #Import problems
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: #Import problems
      • From: Pete Yandell <email@hidden>
  • Prev by Date: Re: ImageInTableview
  • Next by Date: Re: Accessing System Preferences?
  • Previous by thread: Re: Accessing System Preferences?
  • Next by thread: Re: #Import problems
  • Index(es):
    • Date
    • Thread