I found out I need to include winmm.lib, but I can't figure out how to force sip to include this. I tried adding "/LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib" and including winmm.lib under LIBS of the makefile, but I still get the same linker errors.
LIBS = /LIBPATH:$(PTLIBDIR)/lib /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib" /LIBPATH:C:\iPhoneDev\h323lib\sip\qpy\QtCore\release /LIBPATH:C:\Python26\libs qpycore.lib ptlib.lib winmm.lib python26.lib Demetrius Cassidy wrote: > > I am not sure what do I need to do to include the windows library into > sip, so it links correctly. I am trying to use PlaySoundW and Beep which > are defined in MMSystem.h in a class called PSound. It compiles fine in > VC9.0, but gives me linker errors when I wrap it with sip. > > Generating Code... > link /NOLOGO /DLL /MANIFEST /MANIFESTFILE:pyptlib.pyd.manifest > /SUBSYSTE > M:WINDOWS "/MANIFESTDEPENDENCY:type='win32' > name='Microsoft.Windows.Common-Contr > ols' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' > processorA > rchitecture='*'" /INCREMENTAL:NO /OUT:pyptlib.pyd > @C:\DOCUME~1\dcassidy\LOCALS~1 > \Temp\nm1047.tmp > Creating library pyptlib.lib and object pyptlib.exp > sippyptlibPSoundChannel.obj : error LNK2019: unresolved external symbol > "public: > virtual bool __thiscall PSoundChannel::PlaySoundW(class PSound const > &,bool)" ( > ?playsou...@psoundchannel@@UAE_NABVPSound@@_...@z) referenced in function > "protect > ed: virtual bool __thiscall sipPSoundChannel::PlaySoundW(class PSound > const &,bo > ol)" (?playsou...@sippsoundchannel@@MAE_NABVPSound@@_...@z) > sippyptlibPSound.obj : error LNK2019: unresolved external symbol "public: > static > void __cdecl PSound::Beep(void)" (?b...@psound@@SAXXZ) referenced in > function _ > meth_PSound_Beep > pyptlib.pyd : fatal error LNK1120: 2 unresolved externals > NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio > 9.0\VC\BIN > \link.EXE"' : return code '0x460' > Stop. > -- View this message in context: http://old.nabble.com/Help---WINAPI-PSoundW-and-WINAPI-Beep-linker-error-using-sip-tp27966897p27970324.html Sent from the PyQt mailing list archive at Nabble.com. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt