阅读:2747回复:2
急救
写了一个过滤驱动程序,然后写了一个应用层的程序,但是在调试应用层程序的时候出现以下错误:
--------------------Configuration: AddFileView - Win32 Debug-------------------- Linking... AddFileView.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl FileAddRule(struct _FILE_RULE *)" (__imp_?FileAddRule@@YAHPAU_FILE_RULE@@@Z) AddFileView.obj : error LNK2001: unresolved external symbol "int __cdecl WriteRuleFile(void)" (?WriteRuleFile@@YAHXZ) AddFileView.obj : error LNK2001: unresolved external symbol "int __cdecl AddProtectRule(struct _PROTECT_RULE *)" (?AddProtectRule@@YAHPAU_PROTECT_RULE@@@Z) AddFileView.obj : error LNK2001: unresolved external symbol __imp__PathIsDirectoryA@4 AddFileView.obj : error LNK2001: unresolved external symbol "long __cdecl CheckSidByName(char *)" (?CheckSidByName@@YAJPAD@Z) AddFileView.obj : error LNK2001: unresolved external symbol "int __cdecl GetUserAccount(void)" (?GetUserAccount@@YAHXZ) AddFileView.obj : error LNK2001: unresolved external symbol "class CArray<struct _USER_SID,struct _USER_SID> g_SidArray" (?g_SidArray@@3V?$CArray@U_USER_SID@@U1@@@A) AddFileView.obj : error LNK2001: unresolved external symbol "class CMutex g_SidArrayMutex" (?g_SidArrayMutex@@3VCMutex@@A) nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/AddFileView.exe : fatal error LNK1120: 11 unresolved externals Error executing link.exe. AddFileView.exe - 12 error(s), 0 warning(s) C++学的不好,希望哪位大侠帮忙解决一下。 |
|
|
沙发#
发布于:2010-05-11 12:47
没有加入库,或者调 用方式不对
比如在c++中用了c的库,头文件没加 extern c |
|
|
板凳#
发布于:2010-05-11 23:42
回 1楼(znsoft) 的帖子
能说具体点吗?谢谢 |
|
|