-Brendan Bond <bren...@austin.rr.com>
> I just have a few questions about gcc's linker, ld: if I have multiple c++
> files, (say "class.cc, class.h, and main.cc), and all #include directives
> are in their proper places, is there anything I need to do besides "g++
> main.cc"?
Yes: "g++ main.cc class.cc"
> With a container class that I made for a class assignment,
> here's the linker output I got:
> -----------------------------------
> /tmp/ccP5jlPc.o(.text+0x19): In function `main':
> : undefined reference to `mycontainer::mycontainer[in-charge]()'
Naturally: since you didn't link in class.o, all of mycontainer
methods defined in class.cc came out unresolved.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.