错误LNK2001:未解决的外部符号__imp__PathRemoveFileSpecA@4。

时间:2022-09-01 20:43:22

I'm programming with vc6.0 with my backup program. I included shlwapi.h, windows.h and I used PathStripPath function and PathRemoveFileSpec function.

我用vc6.0编程,用我的备份程序。我包括shlwapi。h,窗户。h和我使用了PathStripPath函数和PathRemoveFileSpec函数。

When I complied this message came out.

当我照做的时候,这个消息出来了。

BlackDlg.obj : error LNK2001: unresolved external symbol __imp__PathStripPathA@4
BlackDlg.obj : error LNK2001: unresolved external symbol __imp__PathRemoveFileSpecA@4

And I remove usage in my code and this message doesn't come. Thank for you quick advance.

我在代码中删除了用法,这条消息不会出现。谢谢您的快速推进。

1 个解决方案

#1


10  

The MSDN Library has plenty of information about both of these functions. If you look towards the ends of the articles you'll see that the functions are defined in shlwapi.lib; you need to instruct your linker to include this library for your project to build.

MSDN图书馆有很多关于这两种功能的信息。如果你看一下文章的结尾,你会发现这些函数是在shlwapi.lib中定义的;您需要指导您的链接器将这个库包含到您的项目中。

#1


10  

The MSDN Library has plenty of information about both of these functions. If you look towards the ends of the articles you'll see that the functions are defined in shlwapi.lib; you need to instruct your linker to include this library for your project to build.

MSDN图书馆有很多关于这两种功能的信息。如果你看一下文章的结尾,你会发现这些函数是在shlwapi.lib中定义的;您需要指导您的链接器将这个库包含到您的项目中。