delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/24/20:49:28

From: "Kalum Somaratna" <kalum AT ToughGuy DOT net>
To: djgpp AT delorie DOT com
Date: Mon, 25 Oct 1999 06:01:04 +0600
MIME-Version: 1.0
Subject: Re: libamp (for mp3's with Allegro)
Cc: umgrang0 AT cc DOT umanitoba DOT ca
In-reply-to: <7uvhlb$s5s$1@canopus.cc.umanitoba.ca>
X-mailer: Pegasus Mail for Win32 (v3.12)
Message-Id: <19991025000022.1FB0D63A1C@zagnut.hotpop.com>
X-HotPOP: -----------------------------------------------
Sent By HotPOP.com FREE Email
Get your FREE POP email at www.HotPOP.com
-----------------------------------------------
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 24 Oct 99, at 13:02, Randy <umgrang0 AT cc DOT umanitoba DOT ca> 
wrote:

> Steps I've taken:
> The first time I tried it in dos it gave the assembler errors like you said.
> I have a older copy of djgpp on cd
> 1) replaced current bin directory with that of older copy from cd
> 2) started in dos and used make install, it went fine and copied some files
> to
>    djgpp\include and djgpp\lib
> 3) put original version of bin directory back again.
> 3) rebooted
> 3) attempted to compile the simple example playmp3.c with:
>    gcc playmp3.c -Wall -o playmp3.exe -lalleg -lamp

Dear Randy,
	Your command is wrong. It should be 'gcc playmp3.c -Wall -o 
playmp3.exe -lamp -lalleg'. 
Please note that -lamp has to come before -lalleg. 

Reason -: If I'm correct the linker is a one pass linker so that since 
the libamp library calls some routines from the allegro library the 
libamp lib(-lamp)  must be put before the allegro lib (-lalleg) in the 
command line, otherwise the linker won't be able to find the 
references and give the error's you got.

BTW Didn't you get the libdemo.exe file. Did it work? 


> 2) started in dos and used make install, it went fine and copied >some files to    djgpp\include and djgpp\lib

The files were libamp.h to djgpp\include and libamp.a to djgpp\lib.

Hope this helps you!
Bye!
Kalum.

- Raw text -


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