From: stefan <st...@lk...> - 2002-05-30 18:45:14
|
On Thu, 30 May 2002, John Barnard wrote: > I'm struggling to get the readline library version 4.2 usable on a Windows > 2000 system. I initially tried the readline package from > mingwrep.sourceforge.net, which provides a readline dll, import library, > headers, and some test programs. When I ran the test program rl I got a > memory access fault. I got a similar fault when trying to use the provided > dll in any program (compiled with Mingw gcc). So I got the readline-4.2 > source, applied the patch file provided in the mingwrep package, and > rebuilt the dll and test programs. Same result -- memory access error. > I fiddled with the dll build command in the provided makefile but no > success. I get the same problem whether I use gcc 2.95.3-7 or 3.1 (using > the latest released binutils). > > So, is anyone successfully using a mingw gcc-compiled readline library? > And if so, under what environment? I experienced this kind of problem when using other implementations of malloc() and free(). You must ensure you get these functions from 'msvcrt.dll' againt which the readline.dll is linked to pass pointers to it. At what stage is your application segfault'ing? Cheers, st...@lk... |