From: "John M. Aldrich" 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 >>> | ---------------------------------------------------------------------