This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Problems with SDL
On Mon, 5 Aug 2002 18:47:18 +0200 (CEST), Sylvain Petreolle
<spetreolle@yahoo.fr> wrote:
>Nom@snoop /usr/lib/w32api
>$ nm -A --defined-only *.a |grep errno
>
>Nom@snoop /usr/lib/w32api
>$ nm -A --defined-only *.a |grep iob
>
>Nom@snoop /usr/lib/w32api
>$
>
>What the hell ??
nm -A --undefined-only *.a |grep iob ...no.
nm -A *.a |grep iob ...no.
Ah!....
$ cd /usr/include/mingw
$ grep "_iob" `find . -name '*.h'`
./stdio.h:typedef struct _iobuf
./stdio.h:extern FILE (*_imp___iob)[]; /* A pointer to an array of FILE
*/
./stdio.h:#define _iob (*_imp___iob) /* An array of FILE */
./stdio.h:__MINGW_IMPORT FILE _iob[]; /* An array of FILE imported
from DLL. *
/
./stdio.h:#define stdin (&_iob[STDIN_FILENO])
./stdio.h:#define stdout (&_iob[STDOUT_FILENO])
./stdio.h:#define stderr (&_iob[STDERR_FILENO])
Got to be "-lmsvcrt" but that's in...
/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
...so hand link it (to verify) then go back and see what must have gone
wrong in the (I guess) 'configure' phase. I don't recall this problem
with SDL-1.2.4.tar.gz but I might go check.
--
swamp-dog@ntlworld.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/