I'm creating an app which need the creation of a namespace, but I've a beautiful undefined reference at the first compilation when I'm using this namespace in my main file. But if I re-compile the code, the undefined reference disappear. So, can you explain me what is the problem ?
int main(int argc, char **argv)
{
if(strcmp(argv[1], "-auto") == 0)
std::cout << "Les antibiotiques, c'est pas automatique." << std::endl;
else
ecouteArguments(argc, argv);
return 0;
}>
And my error is :
<g++ -o main.exe main.o -LLibrairie/SSQLite/lib -lSSQLite
main.o: In function 'Z15ecouteArgumentsiPPc' :
Source/main.cpp:21: undefined reference to 'setFile::aide()'
Source/main.cpp:24: undefined reference to 'setFile::ecouteArguments(int, char**)'>
All help is welcome, thanks to have read all my message and sorry for my bad English !