I have this headers in my class
#include <windows.h>
#include <mmreg.h>
#include <msacm.h>
#include <wmsdk.h>
#pragma comment(lib, "msacm32.lib")
#pragma comment(lib, "wmvcore.lib")
#pragma comment(lib, "winmm.lib")
#pragma intrinsic(memset,memcpy,memcmp)
在试图使用<代码>时 创建StreamOnH Global(mp3H Global, FALSE, &mp3Stream); i 得出这一错误:
playlist.obj:-1: error: LNK2019: unresolved external symbol __imp__CreateStreamOnHGlobal@12 referenced in function "public: int __thiscall Playlist::getLengthInSeconds(class QString)" (?getLengthInSeconds@Playlist@@QAEHVQString@@@Z)
I ve tried to add the msacm32.lib
but I found that exist under the name MSAcm32.lib
and Qt doesn t recognize it; also with winmm.lib
, who has the name WinMM.lib
. I don t know what to add, what to do so that my program to work. What can i do?