English 中文(简体)
连接错误的Qt图书馆
原标题:Qt library linking error

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?

最佳回答

If by

Qt doesn t recognize it

您表示,链接错误没有得到解决,以下因素可能有所帮助。

http://msdn.microsoft.com/en-us/library/windows/desktop/a378980(v=vs.85).aspx”rel=“nofollow” http://msdn.microsoft.com/en-us/library/windows/desktop/a378980(v=vs.85)。 页: 1 如果在添加了Lole32.lib号其他链接错误之后,就会发现快速通道或MSDN查询,显示没有校准档案。

而且,青年论坛的窗口对案件不敏感。

问题回答

暂无回答




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签