Adam Nielsen <[EMAIL PROTECTED]> writes:

> The constructor is implemented in the main executable, e.g.
>
>   g++ -o main Main.o RootClass.o
>
> But I imagine it's the same situation.

Actually, it isn't.

There is a big difference between linking RootClass.o and linking
libmumble.a; you can read all about it here:

  http://webpages.charter.net/ppluzhnikov/linker.html

What Robert meant to tell you is that the librarian may not take
RootClass.o "fook" from the libmumble.a "shelf" at all (if none of
the RootClass.o code is referenced by any of your other objects).

But of course, your mistake was even simpler :)

> Is there a way I can link things so this code would be included?

The way you are doing it is fine (provided RootClass.o contains
the necessary code).

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
Help-gplusplus mailing list
Help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to