Mail Archives: djgpp/1997/04/26/15:52:05
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 -