Re: build DLL that can be used by MinGW

2010-02-08 Thread Tim Prince
On 2/8/2010 12:50 AM, Martin Henne wrote: But I need to compile the DLL on cygwin and the rest on MinGW, and this does not work. The reason is, that I need a dll that uses the cygwin-posix-layer. What can I do? Why should it work? If your .exe needs cygwin dll, don't build any part of it

build DLL that can be used by MinGW

2010-02-08 Thread Martin Henne
Hello, I try to produce a DLL on cygwin, that can be linked against a MinGW compiled program. To test with a simple example I tried the following code: // dllfunc.h extern "C" { extern void sayhello(); extern int sumint(int a, int b); } // dllfunc.cpp #include extern "C" { void sayhello(