摘要:
gcc -o test test.c -Wl,-Map,test.mapgcc shellex.c ../src/csapp.c -I../include/ -lpthread编成共享库.sogcc -shared -fPIC -o libvector.so addvec.c multvec.cgcc -rdynamic -O2 -o p3 dll.c -ldl静态库动态库混合使用时要加特殊指令:gcc -g -lstdc++ -g -WI,-dynamic -L. -lmy -WI,-static -L. -lmy -o test.exe main.cc 阅读全文