未解决的外部,包括aux_klib内核库 [英] Unresolved External including the aux_klib kernel library
问题描述
下午好,所以我对在内核模式驱动程序中包含aux_klib库有疑问,出于某种原因,我对所有aux_klib函数都会遇到相同的错误.
Good Afternoon, so I have a question about including the aux_klib library in my Kernel Mode Driver, for some reason I get the same error for all aux_klib functions.
Error 1 error LNK2019: unresolved external symbol AuxKlibInitialize referenced in function "unsigned char __cdecl Main(struct MainInfo*)" (?MainInfo@@YAEPEAU__MainInfo@@@Z)
我在我的项目中做了#pragma注释(lib,"aux_klib.lib"),没有运气,而且驱动程序也用cpp编码.我还将lib添加到我的项目中,并确保它是x64,因为这是项目的构建体系结构.我还尝试通过extern"C"包含函数,但没有标题,只有lib,但是没有运气,我还将所有库路径添加到链接器设置中,而没有添加.任何想法都欢迎!
I did #pragma comment(lib, "aux_klib.lib") in my project and no luck, also the driver is coded in cpp. I also added the lib to my project and made sure it was x64 as that is the projects build architecture. I also tried including the function via extern "C" with out the header and just the lib but no luck, I also added all the library paths to the linker settings and what not. Any ideas are welcome!
推荐答案
Properties->Linker->Input->Additional Dependencies add "AUX_KLIB.LIB"
这对我有用
这篇关于未解决的外部,包括aux_klib内核库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!