home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.amiga.programmer:12419 comp.sys.amiga.misc:12770
- Path: sparky!uunet!usc!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu
- From: danbo@ccwf.cc.utexas.edu (Dan Higgins)
- Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.misc
- Subject: Precompiled Header Prob
- Message-ID: <77867@ut-emx.uucp>
- Date: 17 Aug 92 09:18:49 GMT
- Sender: news@ut-emx.uucp
- Followup-To: comp.sys.amiga.programmer
- Organization: The University of Texas at Austin, Austin TX
- Lines: 37
-
- OK, as short and simple as possible:
-
- lc -ph -oPROGNAME.sym INCLUDES.c
- lc -HPROGNAME.sym -Lncd PROGNAME.c,
-
- where:
- INCLUDES.c is a file containing only headers, structs,
- and data for the main proggy module;
- PROGNAME.sym _should_ be a precompiled header file spit out
- by "lc -ph";
- PROGNAME.c is the source for the main proggy (no #include's in
- this module at all)
-
- So, with Lattice C 5.10 why won't this work? The precompiled header saves
- a ton of time on compile; but the problem shows up when linking
- (everything compiles perfectly).
- Blink replies with:
-
- Undefined symbols First Referenced
- --------------------------- ------------------------
- _MenuStrip File 'PROGNAME.o'
- _Gadget0 File 'PROGNAME.o'
-
- then,
-
- Error 510: _Gadget0 symbol - Reference to unmerged data item
-
- Gadget0 is in the precompiled header file (should be), so why
- can't I reference "extern struct Gadget Gadget0;" in my main module?
-
- Surely SOMEBODY uses precompiled header files...so tell me,
- what am I doing wrong this time?
-
- Many Thanks,
- Dan
- (email to danbo@ccwf.cc.utexas.edu)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-