Joerg Schaber <[EMAIL PROTECTED]> writes:

> I'm trying to compile and link a cpp-file with  the following
> commandline  options:
>
> g++ -I/libpath/ -lmylib  p.cpp

That command line is incorrect.
Correct command line is:

  g++ p.cpp -L/path/to/mylib -lmylib

To understand why the order 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