未解析的外部符号"unsigned int(__stdcall * ATL :: g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP @ ATL @@ 3P6GIXZA)-在VS 2005中 [英] unresolved external symbol "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA) - In VS 2005

查看:358
本文介绍了未解析的外部符号"unsigned int(__stdcall * ATL :: g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP @ ATL @@ 3P6GIXZA)-在VS 2005中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试使用VS 2005创建.DLL.在链接时,出现以下错误;
-------------------------------------------------- ---------------------
错误LNK2001:无法解析的外部符号"unsigned int(__stdcall * ATL :: g_pfnGetThreadACP)(void)"(?g_pfnGetThreadACP @ ATL @@ 3P6GIXZA)
-------------------------------------------------- ---------------------
我搜索后发现很少的答案,例如所有相关模块都应使用VS 2005构建",链接atls.lib".
我已经尝试了上述步骤,并尝试根据一些论坛的建议包含一些Windows头文件,作为对
的回答 同样的问题.不幸的是,没有任何结果!

简而言之:我只有几个.LIB文件,这些文件将被链接,最后我将得到一个.DLL文件.我正在VS 2005中构建这些模块(.LIB和.DLL).这是非MFC DLL.

任何建议都是非常可取的!

最好的问候,
Gangadhar

Hello Everyone,

I am trying to create a .DLL using VS 2005. While linking, I am getting the following error;
-----------------------------------------------------------------------
error LNK2001: unresolved external symbol "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA)
-----------------------------------------------------------------------
I searched and found few answers like "all the dependent modules should be built with VS 2005", "Link atls.lib".
I have tried the above steps and tried including few Windows header files as suggested in few forums as an answer to the
same issue. Unfortunately, nothing works out !

To brief: I have few .LIB files, which will be linked and finally I will be getting a .DLL file. I am building these modules (.LIB and .DLL) in VS 2005. This is a non-MFC DLL.

Any suggestions are really appreciable!

Best regards,
Gangadhar

推荐答案

尝试#include <atlbase.h>到预编译的头文件.
Try to #include <atlbase.h> to your precompiled header.


这篇关于未解析的外部符号"unsigned int(__stdcall * ATL :: g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP @ ATL @@ 3P6GIXZA)-在VS 2005中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆