Well dlls in windows are equivalent to your so (shared objects) in linux. Static objects have .o extensions. To produce the statically linked library (or rather object) you can compile the .c file (which contains the definition of square()) with a -c flag.
prompt> cc -c square.c
This will produce an statically linked library file square.o
now compile the main file(lats say main.c) the same way.
cc -c main.c
which will produce main.o. Now you can link the two object files (main.o and square.o) to produce the executable binary. Or alternatively you can directly do
cc main.c square.o to produce the a.out executable.
For a full reading...you can refer http://www-106.ibm.com/dev
Main Topics
Browse All Topics





by: sunnycoderPosted on 2003-08-26 at 22:26:51ID: 9229924
dlls in linux are .so files
/rute/node 26.html
e.com/Prog ramming/ Pr ogramming_ Platforms/ Linux_Prog ramming/Q_ 20615893.h tml
e.com/Prog ramming/ Pr ogramming_ Platforms/ Linux_Prog ramming/Q_ 20647719.h tml
never done it myself, but here are some links which have helped others
http://www.linuxman.com.cy
http://www.experts-exchang
http://www.experts-exchang