C ++未解析的外部函数IBM Websphere MQ [英] C++ Unresolved external function IBM Websphere MQ
问题描述
我正在使用IBM Websphere MQ库imqb23vn.Lib和imqs23vn.Lib在Visual Studio 2010中构建64位C ++应用程序。我从IBM下载了64位版本的库并将它们放入lib目录中。我在附加库目录下的链接器属性中引用了该目录。在Linker->输入I下,包括Additional Dependencies下的两个库。
当我编译应用程序时,我收到一堆链接错误LNK2001:未解析的外部符号public:static inc __cdecl ImqMgr :: behavior(void)。
我在新的Windows 2008 64位服务器上进行设置。该应用程序在当前的32位Windows 2003服务器环境中编译并运行了9年。任何帮助将不胜感激。谢谢。
I am using IBM Websphere MQ libraries imqb23vn.Lib and imqs23vn.Lib to build a 64-bit C++ application in Visual Studio 2010. I downloaded 64-bit versions of the libraries from IBM and put them into the lib directory. I referenced the directory in the Linker properties under Additional Library Directories. Under Linker->Input I included the two libraries under Additional Dependencies.
When I compile the application, I get a bunch of linking errors "LNK2001: unresolved external symbol "public: static inc __cdecl ImqMgr::behavior(void)".
I am setting this up on a new Windows 2008 64-bit server. The application compiled and worked fine for 9 years in current 32-bit Windows 2003 server environment. Any help would be appreciated. Thanks.
推荐答案
这是事实 - 相信你的链接器:它没有找到库。
一次用谷歌搜索如果找到类似的讨论。其中有一些提示可以解决此问题。
that is the truth - trust your linker: it doesnt find the libs.
With one time googling If found a similar discussion. Which has some tips to resolve this issue.
这篇关于C ++未解析的外部函数IBM Websphere MQ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!