delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/05/14:52:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: swamp-dog AT ntlworld DOT com (Guy Harrison)
To: <cygwin AT cygwin DOT com>
Subject: Re: Problems with SDL
Date: Mon, 05 Aug 2002 18:51:14 GMT
Message-ID: <3d54c4ce.348762383@smtp.ntlworld.com>
References: <20020805164718 DOT 52348 DOT qmail AT web10105 DOT mail DOT yahoo DOT com>
In-Reply-To: <20020805164718.52348.qmail@web10105.mail.yahoo.com>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g75IqQW23764

On Mon, 5 Aug 2002 18:47:18 +0200 (CEST), Sylvain Petreolle
<spetreolle AT yahoo DOT fr> wrote:

>Nom AT snoop /usr/lib/w32api
>$ nm -A --defined-only *.a |grep errno
>
>Nom AT snoop /usr/lib/w32api
>$ nm -A --defined-only *.a |grep iob
>
>Nom AT 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 AT ntlworld DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019