shared libs vs dlls

From: Dave (kaatzd_at_hotmail.com)
Date: 09/17/04


Date: 16 Sep 2004 17:03:55 -0700

Hello,
Some questions, and I'm inviting a discussion of the pros and cons of
shared libs (.so files) and dlls. I am not discussing Windows vs Linux
here, but which file type I should use. My project is a port from
Windows, where there are a lot of dlls and def files for them already
created. I am pretty new to linux programming, and have already
started porting my dlls to .so shared libs, but just recently found
that the gnu linker ld has the ability to create dll files. Are these
the same thing with different output names?
The ld man page says:
--dll
Create a DLL instead of a regular executable. You may
also use
-shared or specify a "LIBRARY" in a given ".def" file.
[This
option is specific to the i386 PE targeted port of the
linker]

The above seems to imply that the --dll option is the same as the
-shared option. And what is i386 PE?

TIA,
Dave



Relevant Pages

  • Dll using symbols of the executable
    ... I'm trying to port a Linux application to Windows but I'm running into ... Now the shared libs can use symbols from the executable and vice versa. ... Is this also possible on Windows? ... I only found references for using symbols from dlls inside applications ...
    (microsoft.public.vc.language)
  • Re: Dll using symbols of the executable
    ... > I'm trying to port a Linux application to Windows but I'm running into ... > some problems regarding the use of dlls. ... > Now the shared libs can use symbols from the executable and vice versa. ... > Is this also possible on Windows? ...
    (microsoft.public.vc.language)
  • Re: OT: anti-malware progs ineffective
    ... > *n?x does not have DLLs. ... apparently have a bit to learn about linux. ... and then grudgingly are ported to mac os, and then finally, to linux. ... Another argument for this particular point is the lack of viruses on the ...
    (sci.electronics.design)
  • Re: OT: anti-malware progs ineffective
    ... > *n?x does not have DLLs. ... apparently have a bit to learn about linux. ... and then grudgingly are ported to mac os, and then finally, to linux. ... Another argument for this particular point is the lack of viruses on the ...
    (sci.electronics.basics)
  • Re: DLL vs Shared Library
    ... DLLs under Windows are shared just like shared libs ... IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL. ...
    (Ubuntu)