Re: Conversion library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

On 31-May-01 gleicon@xxxxxxxxxx wrote:
> "Nemosoft Unv." wrote:
> 
>>
>> Ill be looking forward to it. In the mean time Ill try to find out how
>> one compiles a .so library anyway :)
>>
>>  - Nemosoft
> 
> Did you mean gcc -rdynamic -o lib.so lib.c -ldl as in the dlopen page or
> just compiling it as object ? (I've seen some makefiles using it, like
> gcc lib.c -o lib.so -shared)

Yes, something like the former. Just like libc.so, libqt.so, etc. You
´soft-link´ it in during compilation of your own program (with -l), and
during runtime the library is loaded into the program automatically. As
far as I can judge, dlopen() allows you to explitely load a file, which is
great for plugins, but not for libraries your program depends upon. Anyway,
this is getting off-topic.

 - Nemosoft

-----------------------------------------------------------------------------
Try SorceryNet!   One of the best IRC-networks around!   irc.sorcery.net:9000
URL: never        IRC: nemosoft      IscaBBS (bbs.isca.uiowa.edu): Nemosoft
                        >> Never mind the daylight << 





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux