Compile all C files with your usual options plus -fPIC. This produces
position-independent code needed by shared object files.

Link the resulting .o files with a command like
   gcc *.o -shared -o file.so [-l<libraries>]


全站熱搜
創作者介紹
創作者 本熊 的頭像
本熊

經驗交流分享與備忘

本熊 發表在 痞客邦 留言(0) 人氣()