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 g++ -c prog.cc then reverse order of arguments (correct one seems to be: files first, libdirs second, libs last) g++ -o xprog prog.o -I/home/pindare/othercode/ -L/home/pindare/othercode/ -lmycode -lm Sorry for the confusion. Regards, --- PP _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus