This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: Loading gnu made DLL with MSVC


This example may run, since the dll uses no functions from 'cygwinb19.dll'. 
However, if you need to use for example 'malloc' it will crash. This is the 
problem. And there seems to be no solution yet. Thus, the cygnus gcc can
only create trivial or proprietary dll's.

Juergen

> From: Massimo CICCOTELLI <0994cicc@s1.cise.it>
> Subject: Loading gnu made DLL with MSVC
> To: gnu-win32@cygnus.com
> 
> Hi all!!
> 
> We are looking with great interest at the debate on how to make
> DLL with gcc which can be loaded by MSVC.
> 
> Picking up from different mails on the argument and after some 
> trials, we managed to build up a simple DLL (with egcs-1.0.2-
> mingw32 by Mumit) which can correctly loaded in MSVC 5.0. 
> Here is how:
> 

>------------------------------- testlib.c ----------------------------------------
>int intsum(int arg1, int arg2) { 
>   return arg1+arg2;
>}
>------------------------------ end of testlib.c ------------------------------
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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