delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/26/11:26:17

From: "Martin Lain" <LAINM AT feld DOT cvut DOT cz>
Organization: CVUT FEL student
To: djgpp AT delorie DOT com
Date: Mon, 26 Oct 1998 17:16:56 MET-1MEST
MIME-Version: 1.0
Subject: Re: Setup of LibAmp library (Allegro / DJGPP)
X-mailer: Pegasus Mail v3.40
Message-ID: <1F8EA2923C7@FELIS.FELD.CVUT.CZ>
Reply-To: djgpp AT delorie DOT com

> From:           "Guruman" <nospam DOT guruman DOT spamless AT pissoff DOT spam DOT interlog DOT nospam DOT com>
> Subject:        Re: Setup of LibAmp library (Allegro / DJGPP)
> Date sent:      Thu, 22 Oct 1998 12:07:44 -0400
> Organization:   Interlog Internet Services
> To:             djgpp AT delorie DOT com
> Send reply to:  djgpp AT delorie DOT com

Hello,
This looks like there is a library for playing MP3's. Where can I get 
it?

Thanks

> 
> Guruman wrote in message <70m5nj$n7i$1 AT news DOT interlog DOT com>...
> 
> >    I cannot successfully link this library into my code.
> 
> 
>     Here's another interesting thing.
> 
>     I decided to try and compile one of the demo programs separately from
> the main installation.
> 
>     In order to succesfully compile the included demo program, I had to
> actually add the library filename to the command line, as so:
> 
>     gcc -o playmp3.exe playmp3.o libamp.a -lalleg -lamp
> 
>     Unless 'libamp.a' was copied to the folder containing the source, it
> wouldn't compile. Using RHIDE, I couldn't get it to compile at all and ended
> up with tons of weird-looking errors:
> 
> Error: d:/djgpp/lib/libamp.a(audioalg.o)(.text+0xf5):audioalg.c:  undefined
> reference to `play_audio_stream'
> 
>     which looks to me like somehow Allegro wasn't getting linked properly.
> If 'libamp.a' isn't specified in the above command line, the same errors
> occur.
> 
> 
>     Using a similar approach on my program, I still get the unresolved
> function errors.
> 
>     Why does this library only work when linked like this? Is there a
> certain 'type' of library (or method of compilation) that requires this
> method of linking? I am somewhat inexperienced with the gcc environment - I
> learned C and C++ from books, in a compiler-independant manner. Any
> assistance, or references to documentation on .a libraries would be greatly
> appreciated.
> 
> 
> 

- Raw text -


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