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

From: "Randy" <umgrang0 AT cc DOT umanitoba DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: libamp (for mp3's with Allegro)
Date: Sun, 24 Oct 1999 13:02:49 -0400
Organization: The University of Manitoba
Lines: 43
Message-ID: <7uvhlb$s5s$1@canopus.cc.umanitoba.ca>
References: <19991024051348 DOT 34D0F639DC AT zagnut DOT hotpop DOT com>
NNTP-Posting-Host: annex1-14.cc.umanitoba.ca
X-Trace: canopus.cc.umanitoba.ca 940788203 28860 130.179.153.30 (24 Oct 1999 18:03:23 GMT)
X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca
NNTP-Posting-Date: 24 Oct 1999 18:03:23 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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

   I got:
   c:/djgpp/tmp\ccI8fJPx.o(.text+0x39):PLAYMP3.C: undefined reference to
`install_amp(void)'
   c:/djgpp/tmp\ccI8fJPx.o(.text+0x48):PLAYMP3.C: undefined reference to
`load_amp(char *, int)'
   c:/djgpp/tmp\ccI8fJPx.o(.text+0x51):PLAYMP3.C: undefined reference to
`run_amp(void)'
   c:/djgpp/tmp\ccI8fJPx.o(.text+0x65):PLAYMP3.C: undefined reference to
`unload_amp(void)'

code is:

#include <allegro.h>
#include "libamp.h"

int main(void) {
 allegro_init();
 install_sound(DIGI_AUTODETECT,MIDI_NONE,NULL);
 install_amp();
 load_amp("M:/music/mp3/renegade.mp3",FALSE);
 while (run_amp()>=0);
 unload_amp();
 return(0);
}

4) checked for libamp.h and it is in djggp\include\

Any suggestions?
Thanks.


- Raw text -


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