J
Jason
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
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