I'm sure I just answered a similar Q, but I can't find it.
I don't see a main() in your code, so a couple of those errors seem odd to me, but they resolve to the same problem.
When you say
you are asking GCC to just call the linker (/usr/bin/ld*) to turn your .o into an executable.
Every executable must have a main() function. I don't see one in your code. (Hence the oddness of the first error.)
The second problem is that you have asked GCC to link your .o with ... nothing -- but the .o requires the rcss code.
Is rcss a library installed with your compiler (in /usr/lib/ and /usr/include/)? Or is it in another directory under your project's main directory?
If the former, make sure you are linking with the appropriate library. Your compilation should look something like:
g++ -o myprog mymain.o client.o -lrcss |
I just made that up. I don't know if "rcss" is the library name or not, but whatever it is you need to link the library in that manner. If you need to link more than one library, put each one with its own
-l switch.
"mymain.o" came from "mymain.cpp" which defines main() and executes your program, and presumably uses the class defined in client.h and client.cpp.
Your executable will be named "myprog".
I just noticed that you are using NCurses, so you'll have to link with
-lcurses also.
If it is just another .o file somewhere, you'll have to list it on the command line:
g++ -o myprog mymain.o client.o ./rcss/foo.o ... -lcurses |
Whew. Hope this helps.