Problems compiling - gcc Command line arguments
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Fri Dec 31 23:54:00 GMT 1999
On Thu, 30 Dec 1999, Albert E. Whale wrote:
> The problem that I see here, isn't that the function is declared
> external, but rather that it is used before the actual declaration.
Then this is the problem.
To solve this, you could add a prototype *before* the first use. How is
the compiler supposed to know what a function "looks like" if it has not
seen it yet?
Answer: It makes an educated guess, only to find that it has been wrong
later on, when it sees the actual function and correctly emits a warning
then.
> gcc version pgcc-2.91.66 19990314 (egcs-1.1.2 release)
> [root@Elvis lib]#
>
> Is this current?
No. The current version is GCC 2.95.2. Please have a look at
http://gcc.gnu.org/ for details, but I recommend to upgrade.
In addition you are not using egcs/GCC but PentiumGCC which is based
on egcs/GCC.
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
More information about the Gcc
mailing list