Mail Archives: djgpp/1997/01/03/22:43:48
From: | wildthing AT value DOT net (Wild Thing)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | newbie question
|
Date: | Sat, 04 Jan 1997 00:09:21 GMT
|
Organization: | Value Net Internetwork Services Inc.
|
Lines: | 29
|
Message-ID: | <32cd9e4f.6800703@news.value.net>
|
NNTP-Posting-Host: | j86.value.net
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Whenever I prototype a function in DJGPP, RHIDE tells gives me a
warning when I try to compile the program.
for example:
// my c program
#include <stdio.h>
#include <conio.h>
newFunction(int i); // prototype
main()
{
int i = 5;
clrscr();
printf("blah blah");
newFunction(i);
return 0;
}
newFunction(int i)
{
printf(" %d", i);
return 0;
}
sorry about the bad example, i'm just learning c and had to think of
it off the top of my head.. anyhow, when i try to compile it under
rhide with djgppv2 it says "warning: newFunction() has no data type or
something or other".. but the program works fine if i remove the
prototype at the top.. is this normal?
- Raw text -