home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14795 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.3 KB

  1. Path: sparky!uunet!wupost!gumby!destroyer!ubc-cs!bcsystems!cconstantine
  2. From: cconstantine@galaxy.gov.bc.ca
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: #pragma once whoes!!! Plea for help!
  5. Message-ID: <1992Aug31.135459.935@galaxy.gov.bc.ca>
  6. Date: 31 Aug 92 13:54:59 -0700
  7. Organization: BC Systems Corporation
  8. Lines: 20
  9.  
  10. I have a rather interesting problem if I may impose on you THINK C 5 gurus out
  11. there.  The problem seems to be with the #pragma once directive.  I have this
  12. directive at the top of each of my header files (of which there are 5 or 6) an
  13. d I have 4 source files, 3 of which #include "AppGlobals.h".  I am _STILL_
  14. getting a Link Error of "Multiply defined: symbol (where symbol is my global
  15. var)" I have even tried using the #ifndef ... #endif set of things and still
  16. get this error.  I have trashed my project and recompiled, still the same
  17. thing.
  18.  
  19. Is there something I'm missing here.  I shouldn't be getting this.  BTW, I
  20. don't believe I've got this type of error before.
  21.  
  22. Any help would be _MUCHLY_ appreciated.
  23.  
  24. P.S. to Keith Rollin (a.k.a. the Phantom Programmer) I've bought your first
  25. book with Scott Knaster and am enjoying it thouroghly (sp?)!!!
  26.  
  27. Carl B. Constantine
  28. CCONSTANTINE@galaxy.gov.bc.ca
  29.     "Opinions are my own and are not necessarily those of my employer"
  30.