I'm reading this one book on c++ and am having difficulty making an executable.
I'm a n00b at c++ and Ubuntu
so I don't know what I'm doing wrong.
I've compiled all my cpp files into object files and now I need to link it
but when I try that I get this:
uncle@Orion:~/Desktop/gamedev/calc$ g++ -o calculator *.o -lm
main.o: In function `main':
main.cpp: (.text+0x28d): undefined reference to `SAMSErrorHandling::Initialize()'
main.cpp: (.text+0x33a): undefined reference to `SAMSErrorHandling::HandleRuntimeError(std::runtime_error)'
main.cpp: (.text+0x3c2): undefined reference to `SAMSErrorHandling::HandleNotANumberError()'
main.cpp: (.text+0x3f7): undefined reference to `SAMSPrompt::UserWantsToContinueYOrN(char const*)'
collect2: ld returned 1 exit status
also header files... um... I've made them, am I supposed to link those somehow too?:confused: