home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12723 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.5 KB  |  46 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re: Precompiled Header Prob
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BtLp85.Ev9@unx.sas.com>
  8. Date: Wed, 26 Aug 1992 17:14:28 GMT
  9. References:  <77867@ut-emx.uucp> <BtLE5u.1H6@unx.sas.com>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 32
  13.  
  14.  
  15. In article <BtLE5u.1H6@unx.sas.com>, walker@twix.unx.sas.com (Doug Walker) writes:
  16. |> Here's some examples of definitions:
  17. |> 
  18. |>    struct Gadget Gadget0;
  19. |>    int func(int x, char *y);
  20. |> 
  21. |> Here's some examples of declarations:
  22. |> 
  23. |>    extern struct Gadget Gadget0;
  24. |>    int func(int x, char *y)
  25. |>    {
  26. |>       return(0);
  27. |>    }
  28.  
  29. No! Wait! I reversed the declaration and the definition for the 
  30. function!  Don't send me mail!  Please!  (Thanks Dan Barrett for
  31. pointing this out before I got deluged.)
  32.  
  33. You can have function prototypes in precompiled header files, 
  34. but not function definitions.  All data items have an implied
  35. "extern" in front of them.
  36.  
  37. -- 
  38.   *****
  39. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  40.  *|. o.| ||                                          1200/2400/9600 Dual
  41.   | o  |//     For all you do, this bug's for you!
  42.   ====== 
  43. usenet: walker@unx.sas.com                            bix: djwalker 
  44. Any opinions expressed are mine, not those of SAS Institute, Inc.
  45.  
  46.