"Pindare" <[EMAIL PROTECTED]> writes:

> Pindare wrote:
>
>>   7. then I type
>> g++ -I../home/pindare/othercode/ -L../home/pindare/othercode/ -o xprog
>> prog.cc -lmycode -lm
>
> I found the silly error at last, should type instead

The "silly error" is there, but this:

> g++ -c prog.cc
> g++ -o xprog prog.o -I/home/pindare/othercode/
> -L/home/pindare/othercode/ -lmycode -lm 

Isn't correct fix for it (though it obviously worked).

The correct solution is to understand options you are using, and
use them properly. If you are compiling in /home/pindare/mycode,
then correct command line is:

  g++ -I../othercode -L../othercode -o xprog prog.cc -lmycode -lm

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