RE: DLL generation under Cygwin

2004-05-05 Thread Igor Pechtchanski
On Wed, 5 May 2004, Ted Yu wrote: > Hi, Igor: > > . This is what you invoke when you give the > > -mno-cygwin flag to gcc. Incidentally, once you > > Does this mean I need to install MinGW runtime ? Yes, to be able to use "gcc -mno-cygwin". > > That's because you use "ld" in

RE: DLL generation under Cygwin

2004-05-05 Thread Ted Yu
Hi, Igor: > . This is what you invoke when > you give the > -mno-cygwin flag to gcc. Incidentally, once you Does this mean I need to install MinGW runtime ? > That's because you use "ld" instead of "gcc". "gcc" > (with appropriate > flags, i.e., "-mno-cygwin") should do the

RE: DLL generation under Cygwin

2004-05-05 Thread Igor Pechtchanski
On Wed, 5 May 2004, Ted Yu wrote: > Hi, Igor: > > So does MSVCRT.dll, which is what MinGW uses for its > > runtime. > > I am not familiar with MinGW. What is it ? . This is what you invoke when you give the -mno-cygwin flag to gcc. Incidentally, once you eliminate Cygwin from

RE: DLL generation under Cygwin

2004-05-05 Thread Ted Yu
Hi, Igor: > So does MSVCRT.dll, which is what MinGW uses for its > runtime. I am not familiar with MinGW. What is it ? > Why are you linking in libc.a explicitly? The > appropriate version should > be automatically linked in by the compiler. If I omit libc.a, I get this: ld: warning: cannot find

RE: DLL generation under Cygwin

2004-05-05 Thread Igor Pechtchanski
On Wed, 5 May 2004, Ted Yu wrote: > Hi, > I deleted .o files and compiled with -mno-cygwin. > cygwin1.dll is still needed because it contains > malloc() and free() which are used in my DLL. So does MSVCRT.dll, which is what MinGW uses for its runtime. > Here is my Makefile: > OBJS = \ >

RE: DLL generation under Cygwin

2004-05-05 Thread Ted Yu
Hi, I deleted .o files and compiled with -mno-cygwin. cygwin1.dll is still needed because it contains malloc() and free() which are used in my DLL. Here is my Makefile: OBJS = \ 8d0.o 8d1.o 8d2.o \ 8c0.o 8c1.o 8c2.o \ 8r0.o 8r1.o 8r2.o \ 8u0.o 8u1.o 8u2.o \ 8

RE: DLL generation under Cygwin

2004-05-05 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Ted Yu > Sent: 04 May 2004 20:23 > Hi, Larry: > If I use your flag, I got the following: > ld: warning: cannot find entry symbol [EMAIL PROTECTED]; > defaulting to 10001000 > djbfft2d.o(.text+0x4d3):djbfft2d.cpp: undefined > reference

Re: DLL generation under Cygwin

2004-05-04 Thread Ted Yu
Hi, Larry: If I use your flag, I got the following: ld: warning: cannot find entry symbol [EMAIL PROTECTED]; defaulting to 10001000 djbfft2d.o(.text+0x4d3):djbfft2d.cpp: undefined reference to `_imp___iob' djbfft2d.o(.text+0x50a):djbfft2d.cpp: undefined reference to `_imp___iob' BTW, I have this f

Re: DLL generation under Cygwin

2004-05-04 Thread Larry Hall
y 2004 18:41:58 -0700 >Received: from [192.146.1.16] by web12103.mail.yahoo.com via HTTP; Mon, 03 May 2004 >18:41:58 PDT >Date: Mon, 3 May 2004 18:41:58 -0700 (PDT) >From: Ted Yu <[EMAIL PROTECTED]> >Subject: Re: DLL generation under Cygwin >To: DJ Delorie <[EMAIL PROTEC

DLL generation under Cygwin

2004-05-04 Thread Ted Yu
Hi, Here is some information on exception: if (!hFFT) { hFFT = LoadLibrary("djbfft.dll"); status = GetLastError();// 998 invalid memory access rfour2d = (RFOUR2D) GetProcAddress(hFFT, "rfft2d_djb");