delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/05/00:20:01

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 04:18:47 GMT
Message-ID: <3d54f947.296659944@smtp.ntlworld.com>
References: <20020805030916 DOT 12794 DOT qmail AT web10108 DOT mail DOT yahoo DOT com>
In-Reply-To: <20020805030916.12794.qmail@web10108.mail.yahoo.com>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g754K1I23759

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

>This makes the trip, but I must use your commented form, as this:
>#     --libs)
>#       libdirs="-L${exec_prefix}/lib "
>#       echo $libdirs -lSDL 
>#       ;;
>#     --static-libs)
>    --libs|--static-libs)
>       libdirs=""
>       echo $libdirs -lSDL -luser32 -lgdi32 -lwinmm
>       ;;
>
>Now i only get 2 errors : (perhaps one more missing -l flag ?)

Yeah, looks like it...

>/usr/local/lib/libSDL.a(SDL_nullvideo.o): In function
>`DUMMY_VideoInit':
>/home/Nom/SDL12/src/video/dummy/SDL_nullvideo.c:153: undefined
>reference to `_imp___iob'

$ cd /usr/lib/mingw
$ nm -A --defined-only *.a | grep imp___iob

libcrtdll.a:ds00132.o:00000000 I __imp___iob
libmsvcrt.a:ds00222.o:00000000 I __imp___iob
libmsvcrt20.a:ds00187.o:00000000 I __imp___iob
libmsvcrt40.a:ds00198.o:00000000 I __imp___iob

>/usr/local/lib/libSDL.a(SDL_diskaudio.o): In function
>`DISKAUD_PlayAudio':
>/home/Nom/SDL12/src/audio/disk/SDL_diskaudio.c:168: undefined reference
>to `_errno'

$ nm -A --defined-only *.a | grep _errno

libcrtdll.a:ds00073.o:00000000 T __errno
libcrtdll.a:ds00073.o:00000000 I __imp___errno
libiberty.a:strerror.o:000002e4 T _errno_max
libmsvcrt.a:ds00147.o:00000000 T __errno
libmsvcrt.a:ds00147.o:00000000 I __imp___errno
libmsvcrt20.a:ds00123.o:00000000 T __errno
libmsvcrt20.a:ds00123.o:00000000 I __imp___errno
libmsvcrt40.a:ds00130.o:00000000 T __errno
libmsvcrt40.a:ds00130.o:00000000 I __imp___errno
libstdc++.a:strerror.o:000002e4 T _errno_max

...pick one - I'm not overly familiar with mingw compilations and too
bleary-eyed to distinguish those underscores! ;-)


-- 
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