Re: dll link error using Cygwin gcc

2007-06-13 Thread Brian Dessent
Harold Mills wrote: > As Dave Korn and Brian Dessent both pointed out, my problem was that gcc was > compiling Hello.c with the default cdecl calling convention, but the library > I wanted to link to uses the stdcall convention. Adding __stdcall to the > function declarations in the header file ec

RE: dll link error using Cygwin gcc

2007-06-13 Thread Dave Korn
On 13 June 2007 19:45, Harold Mills wrote: > As Dave Korn and Brian Dessent both pointed out, my problem was that gcc was > compiling Hello.c with the default cdecl calling convention, but the library > I wanted to link to uses the stdcall convention. Adding __stdcall to the > function declaration

Re: dll link error using Cygwin gcc

2007-06-13 Thread Harold Mills
As Dave Korn and Brian Dessent both pointed out, my problem was that gcc was compiling Hello.c with the default cdecl calling convention, but the library I wanted to link to uses the stdcall convention. Adding __stdcall to the function declarations in the header file eci.h fixed the problem. Dave s

Re: dll link error using Cygwin gcc

2007-06-12 Thread Brian Dessent
Harold Mills wrote: > I'm trying to use Cygwin's gcc to link a small test program (Hello.c) > against a commercial DLL (ibmeci.lib), the source code for which I don't > have. I followed the instructions at www.cygwin.com/cygwin-ug-net/dll.html > to try to build a Cygwin-compatible import library:

RE: dll link error using Cygwin gcc

2007-06-12 Thread Dave Korn
On 12 June 2007 16:47, Harold Mills wrote: > I get the ld error message "undefined reference to '_eciSpeakText'". The > Hello.c program calls a function 'eciSpeakText'. > > What can I do to fix this? > [EMAIL PROTECTED] Run "info ld" and look for "--enable-stdcall-fixup". cheers,