Hi,

g++ does not search /opt/local/lib/ by default. Does anybody know how
to let it search /opt/local/lib/ by default?

~/linux/test/cpp/library/pcrecpp$ port select gcc
Available versions for gcc:
        apple-gcc42 (active)
        llvm-gcc42
        mp-gcc45
        mp-gcc47
        none
~/linux/test/cpp/library/pcrecpp$ g++ main.o -lpcrecpp  -o main
-L/opt/local/lib/
~/linux/test/cpp/library/pcrecpp$ g++ main.o -lpcrecpp  -o main
ld: library not found for -lpcrecpp
collect2: ld returned 1 exit status

-- 
Regards,
Peng
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to