Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <99B82AA9708ED0119B55006097125A00405B38@ifk63.mach.uni-karlsruhe.de> From: Heribert Dahms To: "'Earnie Boyd'" , Frank Moehle , cygwin AT sources DOT redhat DOT com Subject: RE: cooperation of cygwin and NuTCracker ?? Date: Fri, 13 Oct 2000 21:32:07 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1457.3) Content-Type: text/plain Hi Earnie and Frank, please see my commenty embedded below. Bye, Heribert (heribert_dahms AT icon-gmbh DOT de) > -----Original Message----- > From: Earnie Boyd [SMTP:earnie_boyd AT yahoo DOT com] > Sent: Friday, October 13, 2000 14:03 > To: Frank Moehle; cygwin AT sources DOT redhat DOT com > Subject: Re: cooperation of cygwin and NuTCracker ?? > > --- Frank Moehle wrote: > > Hi, > > > > > > > >> --- Frank Moehle > wrote: > > >> Using "objdump -p" on the external DLL, i get a huge number of > lines, > > >> starting with the one quoted below (second dump). > > >> What i understand is that the DLL needs a lot of "standard" > > >> function like printf, malloc, etc from another DLL called > "nutlibc4.dll". > > >> Does this interfere with the function from cygwin1.dll, which our > program > > is > > >> compiled against ?? > > >> > > >> btw, we are using cygwin 1.1.4 > > >> > > > > > > Earnie Boyd wrote: > > >It ain't likely to work. Mixing two C runtimes is bad news. Can > you use > > >anaport without the nut*.dll? It looks as if the functions needed > C > > functions > > >may be supported by Cygwin. > > > > Well, that's really bad news. > > I don't think i can use anaport.dll without the nut* stuff, > > at least i do not know how to tell NT to skip the reference > > to the nutlibc4.dll and use cygwin1.dll instead. > > > > Is there a chance to get our program to worl with that DLL > > when i use the -mno-cygwin option (giving up posix support, > > but i still have a gcc and all the unix tools to build the program > with), > > or would it be better to take the whole pain an use MSVC ?? > > > [Heribert] That's why I suggested writing a minimal MSVC or mingw > program calling the problematic anaport routines and passing stuff > via IPC to your real, bigger Cygwin application. Basically just a > daemon > or "service" ... > > The -mno-cygwin uses crtdll and not msvcrt but that might not matter. > You > could try it. If that doesn't work for you try http://www.mingw.org > and if > that doesn't work try http://pw32.sourceforge.net. > > I just had a thought, since Nutcracker is a runtime it must come with > headers > for that runtime. Be sure you're using those headers and not the > Cygwin > headers, you might want to use the -nostdinc switch in combination > with the -I > switch. Then when linking instead of using the gcc frontend use ld > directly so > that you can specify yourself which runtime to use. You can see what > libraries > are added automagically by doing `gcc -v -o foo foo.c'. You'll want > to use all > but -lcygwin. > > [Heribert] While I'm not familiar with NutCracker (I only used > Interix and Cygwin), > I think headers are only in a NutCracker developer installation, not > in runtime only. > Especially if nutlibc4.dll is only used indirectly by anaport.dll, so > you would > need only headers for the latter one. > > HTH, > > Cheers, > > ===== > Earnie Boyd > mailto:earnie_boyd AT yahoo DOT com > > --- --- > --- Cygwin: POSIX on Windows --- > --- Minimalist GNU for Windows --- > > __________________________________________________ > Do You Yahoo!? > Get Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.com/ > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com