www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/20/18:21:48

Xref: news2.mv.net comp.os.msdos.djgpp:5220
From: rpope AT saclink1 DOT csus DOT edu (Ralph A Pope)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: MikAlleg
Date: 20 Jun 1996 17:37:22 GMT
Organization: California State University Sacramento
Lines: 46
Message-ID: <4qc28i$e46@news.csus.edu>
References: <835267578snz AT flag DOT demon DOT co DOT uk>
NNTP-Posting-Host: rpope%@saclink1.csus.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ben Ashley (Ben AT flag DOT demon DOT co DOT uk) wrote:
: Hey All,

: Another question from good old Ben (You people must think I have a personal
: problem or something :)).  Its not that I don't understand all these things,
: I just keep hitting the odd wall... 

: Anyways, I am using the MikAlleg library (ie, the combination of the MikMod
: and allegro library), downloaded from the DJGPP game programming resources
: page.  I wanted to test the 'mod' functions out, and wrote a quick program
: like this:

: #include <mikmod.h>

: 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.

-Mike P.

- Raw text -


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