home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12419 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.7 KB

  1. Xref: sparky comp.sys.amiga.programmer:12419 comp.sys.amiga.misc:12770
  2. Path: sparky!uunet!usc!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu
  3. From: danbo@ccwf.cc.utexas.edu (Dan Higgins)
  4. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.misc
  5. Subject: Precompiled Header Prob
  6. Message-ID: <77867@ut-emx.uucp>
  7. Date: 17 Aug 92 09:18:49 GMT
  8. Sender: news@ut-emx.uucp
  9. Followup-To: comp.sys.amiga.programmer
  10. Organization: The University of Texas at Austin, Austin TX
  11. Lines: 37
  12.  
  13. OK, as short and simple as possible:
  14.  
  15.      lc -ph -oPROGNAME.sym INCLUDES.c
  16.      lc -HPROGNAME.sym -Lncd PROGNAME.c,
  17.  
  18.      where:
  19.      INCLUDES.c is a file containing only headers, structs,
  20.         and data for the main proggy module;
  21.      PROGNAME.sym _should_ be a precompiled header file spit out
  22.         by "lc -ph";
  23.      PROGNAME.c is the source for the main proggy (no #include's in
  24.         this module at all)
  25.  
  26. So, with Lattice C 5.10 why won't this work?  The precompiled header saves
  27. a ton of time on compile; but the problem shows up when linking
  28. (everything compiles perfectly).
  29. Blink replies with:
  30.  
  31.      Undefined symbols           First Referenced
  32.      --------------------------- ------------------------
  33.      _MenuStrip                  File 'PROGNAME.o'
  34.      _Gadget0                    File 'PROGNAME.o'
  35.  
  36. then,
  37.  
  38.      Error 510: _Gadget0 symbol - Reference to unmerged data item
  39.  
  40. Gadget0 is in the precompiled header file (should be), so why
  41. can't I reference "extern struct Gadget Gadget0;" in my main module?
  42.  
  43. Surely SOMEBODY uses precompiled header files...so tell me,
  44. what am I doing wrong this time?
  45.  
  46. Many Thanks,
  47. Dan
  48. (email to danbo@ccwf.cc.utexas.edu)
  49. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  50.