From: "Kalum Somaratna aka Grendel" To: djgpp AT delorie DOT com Date: Sat, 6 Nov 1999 18:30:55 +0600 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Can't MAKE Libamp files Cc: bport AT direct DOT ca In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.12) Message-Id: <19991106123116.A256F639DE@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 Precedence: bulk On 5 Nov 99, at 23:38, BP wrote: > I have djgpp v2.95 and I downloaded Libamp 0.1 (a DJGPP MP3 player). I > extracted it and ran "make -f makefile.amp" as it says in the Readme. It > compiles through a few files, but then it stops and gives me error messages. > I pasted the output below. Anyone have any ideas to fix this? Any help would > be great. > > C:\djgpp\amp>make -f makefile.amp > gcc -c -O6 -ffast-math -fomit-frame-pointer -m486 -DNO_BYTE_SWAPPING -DOS_MS > DOS > -DARCH_i586 audioIO.c > In file included from audioIO.c:31: > audioalg.c: In function `audioAlloc': > audioalg.c:64: too few arguments to function `play_audio_stream' > audioalg.c:66: too few arguments to function `play_audio_stream' > audioalg.c:69: too few arguments to function `play_audio_stream' > audioalg.c: In function `audioBufferWrite': > audioalg.c:338: Invalid `asm' statement: > audioalg.c:338: fixed or forbidden register 2 (cx) was spilled for class > CREG. > audioalg.c:349: Invalid `asm' statement: > audioalg.c:349: fixed or forbidden register 2 (cx) was spilled for class > CREG. > make.exe: *** [audioIO.o] Error 1 Hi, The problem is due to the fact that GCC 2.95 has changed it's inline assembly support. Thus older programs which compiled well using 2.81 give errors in 2.95 (invalid asm etc). So my quick fix was to download GCC 2.81 (gcc281b.zip) install it and use it to compile libamp and get the LIBAMP.A file and the examples. And then (since I use gcc2.95 like you) I reinstalled GCC 2.95 and used it to compile my LIBAMP based program's linking with the LIBAMP.A file made by gcc2.81. I hope this helps you as apart from rewriting the libamp files for GCC2.95 this was the only quick fix I could think of. Bye! Kalum