home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!walker
- From: walker@twix.unx.sas.com (Doug Walker)
- Subject: Re: Precompiled Header Prob
- Originator: walker@twix.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <BtLp85.Ev9@unx.sas.com>
- Date: Wed, 26 Aug 1992 17:14:28 GMT
- References: <77867@ut-emx.uucp> <BtLE5u.1H6@unx.sas.com>
- Nntp-Posting-Host: twix.unx.sas.com
- Organization: SAS Institute Inc.
- Lines: 32
-
-
- In article <BtLE5u.1H6@unx.sas.com>, walker@twix.unx.sas.com (Doug Walker) writes:
- |> Here's some examples of definitions:
- |>
- |> struct Gadget Gadget0;
- |> int func(int x, char *y);
- |>
- |> Here's some examples of declarations:
- |>
- |> extern struct Gadget Gadget0;
- |> int func(int x, char *y)
- |> {
- |> return(0);
- |> }
-
- No! Wait! I reversed the declaration and the definition for the
- function! Don't send me mail! Please! (Thanks Dan Barrett for
- pointing this out before I got deluged.)
-
- You can have function prototypes in precompiled header files,
- but not function definitions. All data items have an implied
- "extern" in front of them.
-
- --
- *****
- =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
- *|. o.| || 1200/2400/9600 Dual
- | o |// For all you do, this bug's for you!
- ======
- usenet: walker@unx.sas.com bix: djwalker
- Any opinions expressed are mine, not those of SAS Institute, Inc.
-
-