makefile的部分输出:
gcc -o ./testocci test.o -lpthread -lstdc++ -ldl -L/export/home/oracle/instantclient_10_2 -locci -lclntsh
/usr/bin/ld: warning: libstdc++.so.5, needed by /export/home/oracle/instantclient_10_2/libocci.so, may conflict with libstdc++.so.6
将makefile改为:
gcc -o ./testocci test.o -lpthread -lstdc++ -ldl -L/export/home/oracle/instantclient_10_2 -locci -lclntsh /usr/lib/libstdc++.so.5
警告消失