[shell-coding] Re: Compiling LS modules with DEV-C++

A. Klingenstein wrote:
> Brian Wolven wrote:
>> which generates errors like this:
>>
>> [Linker error] undefined reference to
>> `sndPlaySoundA@8'
>
> -lwinmm in Project Options (alt-p), Parameters, Linker should do the
> trick. The function is in libwinmm.a

Yup, that did it. Sounds are now operational again. Funny thing is, I
didn't even know the module *had* any sound settings until I started
messing around with the source. Those settings aren't even in the
documentation.

Are there cases where the order in which you link against the various
libraries makes a difference in whether or not the code compiles? I ran
into this while trying to create some sharable libraries from FORTRAN
code on a couple of *nix platforms (IRIX, HP-UX). It'd only work one
way - and that wasn't documented anywhere, either. =)




__________________________________________________
Subscription options and archive:
http://www.freelists.org/list/shell-coding

Other related posts: