delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/08/15:25:02

From: "Markus Ilmola" <markus DOT ilmola AT pp DOT inet DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: midas
Lines: 46
X-Newsreader: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Message-ID: <Ouxx4.348$Vi3.9437@read2.inet.fi>
Date: Wed, 08 Mar 2000 19:04:14 GMT
NNTP-Posting-Host: 212.213.40.222
X-Trace: read2.inet.fi 952542254 212.213.40.222 (Wed, 08 Mar 2000 21:04:14 EET)
NNTP-Posting-Date: Wed, 08 Mar 2000 21:04:14 EET
Organization: Sonera corp Internet services
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I downloaded midas, but I don't know how to use it.
I made a file "aani.cpp":

#include <stdio.h>
#include <conio.h>
#include "F:\midas\include\midasdll.h"
void main(void)  {
  MIDASmodule module;
  MIDASmodulePlayHandle playHandle;
  MIDASstartup();
  MIDASinit();
  MIDASstartBackgroundPlay(0);
  module = MIDASloadModule("f:\\midas\\samples\\data\\templsun.xm");
  playHandle = MIDASplayModule(module, TRUE);
  puts("Playing - press any key");
  getch();
  MIDASstopModule(playHandle);
  MIDASfreeModule(module);
  MIDASstopBackgroundPlay();
  MIDASclose();
  return 0;  }

,but I got this error:
aani.cc(.text+0x48): undefined reference to `MIDASstartup'
aani.cc(.text+0x4d): undefined reference to `MIDASinit'
aani.cc(.text+0x54): undefined reference to `MIDASstartBackgroundPlay'
aani.cc(.text+0x61): undefined reference to `MIDASloadModule'
aani.cc(.text+0x74): undefined reference to `MIDASplayModule'
aani.cc(.text+0x97): undefined reference to `MIDASstopModule'
aani.cc(.text+0xa3): undefined reference to `MIDASfreeModule'
aani.cc(.text+0xab): undefined reference to `MIDASstopBackgroundPlay'
aani.cc(.text+0xb0): undefined reference to `MIDASclose'

What is wrong?????

I think it has something to do with this:
"As MS-DOS doesn't support dynamic linking, only a static link library is
provided for MS-DOS. You'll simply need to link with the library from the
appropriate subdirectory -- usually lib/dos/gcretail for GCC (DJGPP) and
lib/dos/wcretail for Watcom C. The executable is fully self-contained, and
no additional files are needed. DJGPP users also need to link with the
Allegro library, as MIDAS uses some of its functions for IRQ handling. "




- Raw text -


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