|
From: Elias P. <Eli...@ao...> - 2000-11-24 16:36:15
|
> Hi Elias,
>
> thanks for answering.
>
> > You need a 'libwinmm.a', and add '-lwinmm' to further options.
>
> As far as I understand you I have to fill two fields in the
> 'Project option'-Dialog? (Alt+P)
>
> 1st) 'further object files or linker options (seperate
by -unreadable-)'
> content in my case: 'absPath\libwinmm.a'
>
> 2nd) 'Extra compiler options (only for this project)'
> content in my case: '-lwinmm'
>
> Compiling is fine but ist seems no linking happens
> I get this error message (twice):
> 'g++: -lwinmm: linker input file unused since linking not done'
>
> Did I get you wrong?
Yes, I wasn't very clear. You have to fill '-lwinmm' to the 'further
object files or linker options', and nothing to the compiler options.
This is because only the linker has to know about the library, the
compiler will already see the function by including "mmsystem.h".
('-lwinmm' is a linker option and tells the linker to look for the
libwinmm.a library)
Elias
|