Pep <[EMAIL PROTECTED]> writes:

> g++ -I. -L. -ltest -o test-main main.cc

Above command line is incorrect. Try this:

  g++ -I. -L. -o test-main main.cc -ltest 

> I've been looking at this for some time now and am frankly stumped by
> what I know must be a simple case of me not doing something I should
> have but I don't know what.

To understand why the order of sources/objects and libraries on
command line matters, read this:
  http://webpages.charter.net/ppluzhnikov/linker.html

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