Mail Archives: djgpp/1998/05/04/17:47:39
Message-ID: | <354E35F1.4EE71278@sprynet.com>
|
Date: | Mon, 04 May 1998 14:41:05 -0700
|
From: | Ishpeck <aTedjamulia AT sprynet DOT com>
|
Organization: | Lunaticnologies
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | HELP: Linker hates me!
|
NNTP-Posting-Host: | 192.41.91.193
|
Lines: | 24
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
When I compile my project from RHIDE, the linker returns an error at
a point where I call a function from another source file. The function
is prototyped.... so, I shouldn't imagine why it's telling me that it
is undeclared.... it looks something like this
#MAIN.CC#
int foo(void);
void main(void){
int returnval;
do{
returnval=foo();
}while(returnval==0);
}
# END OF MAIN.CC #
#STUFF.CC#
int foo(void){
return 7;
}
#END STUFF.CC#
It tells me that i'm making a call to an undeclared function 'foo'
- Raw text -