Xref: news2.mv.net comp.os.msdos.djgpp:5258 From: Ben Ashley Newsgroups: comp.os.msdos.djgpp Subject: Re: MikAlleg Date: Thu, 20 Jun 96 22:39:18 GMT Organization: Flag Bearers Lines: 51 Message-ID: <835310358snz@flag.demon.co.uk> References: <835267578snz AT flag DOT demon DOT co DOT uk> <4qc28i$e46 AT news DOT csus DOT edu> Reply-To: Ben AT flag DOT demon DOT co DOT uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <4qc28i$e46 AT news DOT csus DOT edu> rpope AT saclink1 DOT csus DOT edu "Ralph A Pope" writes: > Ben Ashley (Ben AT flag DOT demon DOT co DOT uk) wrote: > : #include > > : void main(void) > : { > : UNIMOD *myfile; > : myfile = ML_LoadFN("C:\\music\\mods\\top.mod"); > : ML_Free(myfile); > : }; > > : I am using RHIDE. I made sure the allegro library was part of it, and then > : compiled. Compiles fine, but when linked, it said that the ML_LoadFN() and > : ML_Free() functions were an 'undefined reference'. I checked the allegro > : library, to make sure the functions were incorporated correctly, and they > : were. > > : Anybody know why this happened? > > : -- > : Cheers, > > : Ben -=Look for "Moo-Juice" on the IRC=- > > : ---------------------====### legal notice ###====-------------------------- > : Microsoft Network is prohibited from redistributing this work in any > : form,in whole or in part. License to distribute this post is available to > : Microsoft for $499. Posting without permission constitutes an agreement to > : these terms. > Did you enter the library name up in the (I believe it's Options) menu? > It should be under libraries. Go to that and click on the check box and > enter 'alleg' into it, and away you go... > Also, liballeg.a needs to be in the lib directory(or on your lib path in > djgpp.env) for this to work. Yeah, I made sure of all that. However, a previous person mentioned I had to add extern "C" to all the function names. Thanks anyway :) -- Cheers, Ben -=Look for "Moo-Juice" on the IRC=- ---------------------====### legal notice ###====-------------------------- Microsoft Network is prohibited from redistributing this work in any form,in whole or in part. License to distribute this post is available to Microsoft for $499. Posting without permission constitutes an agreement to these terms.