caffeine43
Registered Member
Why am I getting an implicit declaration error? I don't know why it is doing this...thanks for help in advance....
-Tom
#include <iostream>
int main()
{
float f = 235.325634;
float g = getFloat();
cout << f << "\n" << g;
return 0;
}
float getFloat()
{
float q = 214.34623;
return static_cast<float>(215.35623);
}
[ Wrote 17 lines ]
[tlutz@guinness Parser]$ g++ test.cpp -o test
test.cpp: In function `int main()':
test.cpp:7: implicit declaration of function `int getFloat(...)'
[tlutz@guinness Parser]$
-Tom
#include <iostream>
int main()
{
float f = 235.325634;
float g = getFloat();
cout << f << "\n" << g;
return 0;
}
float getFloat()
{
float q = 214.34623;
return static_cast<float>(215.35623);
}
[ Wrote 17 lines ]
[tlutz@guinness Parser]$ g++ test.cpp -o test
test.cpp: In function `int main()':
test.cpp:7: implicit declaration of function `int getFloat(...)'
[tlutz@guinness Parser]$