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

any suggestions?
also header files... um... I've made them, am I supposed to link those somehow too?:confused:

any suggestions?

Show us the code?

Show us the code?

o ok I just attached them.

the header files
in case I messed those up somehow

how can i get address of function in c++

Just for trial, try putting :

using namespace SAMSErrorHandling;

at the top of your main.

Just for trial, try putting :

using namespace SAMSErrorHandling;

at the top of your main.

tried that, compiled fine but still get the same message when I try to link
:'(
lol at your sig btw xD

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.