This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with DLLs and processes

Przemyslaw Sliwa wrote:
> Woooooww,
> It seems it is much more complicated than just the simple STATIC option in GCC under Linux.
> But there must be a way to link the executable with the dlls. Like in Linux.

No, there really isn't a way.  You cannot compare the two situations
because they are not the same thing.  When you link against a dynamic
library under linux all you're doing is dynamically linking to functions
so that they can be called from your code.  But the Cygwin DLL provides
an entire POSIX emulation layer between your program and Windows.  This
means that when it starts up it does a number of initialization tasks,
including creating its own segment of shared memory, common to all
Cygwin apps, to maintain state information, tables of handles,
processes, etc.  In other words there's a lot of magic going on in the
background to provide you with that spiffy POSIX interface, and it's not
so simple as saying "Why can't I just link statically?"


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]