delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/26/15:52:05

From: "John M. Aldrich" <fighteerNO AT SPAMcs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: MikMod and RHIDE
Date: Sat, 26 Apr 1997 02:00:37 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 26
Message-ID: <336161C5.5976@SPAMcs.com>
References: <33619bb5 DOT 769554 AT news DOT eunet DOT fi>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp101.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Aleksi Kallio wrote:
> 
> I downloaded MikMod, and started testing. I made project with RHIDE
> that had example file mikmod.c and libmikm.a library. And it worked
> well. Then I made my own program, but in linking it gives a whole lot
> of undefined references. And I tried it without the libmikm.a library,
> and got the same results! So it seems that the library isn't linked at
> all. But the example mikmod.c worked well.
> There isn't anything wrong in my program, the author of MikMod said
> so.

Are you sure you put the command to link the library at the _end_ of
your command line?  It must look like so:

gcc -o myprog.exe myprog.c -lmikm

RHIDE does this by default.  Remember that the order of the command line
arguments does matter to gcc.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I      |   mailto:fighteer AT cs DOT com   |
| God's final message to His Creation: | http://www.cs.com/fighteer |
| "We apologize for the inconvenience."| <<< This tagline under >>> |
|                      - Douglas Adams | <<<    construction    >>> |
---------------------------------------------------------------------

- Raw text -


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