implicit declaration of function error
From: Jason (jason.carney1_at_btinternet.com)
Date: 01/01/04
- Next message: Martijn Lievaart: "Re: implicit declaration of function error"
- Previous message: Richard Heathfield: "Re: Gene Theory - C core commands"
- Next in thread: Martijn Lievaart: "Re: implicit declaration of function error"
- Reply: Martijn Lievaart: "Re: implicit declaration of function error"
- Reply: osmium: "Re: implicit declaration of function error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 1 Jan 2004 08:44:18 +0000 (UTC)
Hi,
Im running windows xp pro and compiling using dev c++ 4. I have the
following situation:
#include <iostream>
#include <string>
using namespace std;
int main() {
string str;
func(str);
}
void func(string str) {
//do stuff, call some other classes member functions etc
func2(str);
}
void func2(string str) {
//do more stuff
}
It says 2 errors occur with the following output:
7 errormain.cpp
implicit declaration of function `int func(...)'
7 errormain.cpp
warning: cannot pass objects of type `string' through `...'
12 errormain.cpp
implicit declaration of function `int func2(...)'
12 errormain.cpp
warning: cannot pass objects of type `string' through `...'
What am I doing wrong???
Thanks for any help in advance
jason
- Next message: Martijn Lievaart: "Re: implicit declaration of function error"
- Previous message: Richard Heathfield: "Re: Gene Theory - C core commands"
- Next in thread: Martijn Lievaart: "Re: implicit declaration of function error"
- Reply: Martijn Lievaart: "Re: implicit declaration of function error"
- Reply: osmium: "Re: implicit declaration of function error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|