代码:
#include <shlwapi.h>
int main() {
TCHAR buffer[MAX_PATH];
DWORD bufSize;
GetModuleFileName(NULL, buffer, bufSize);
TCHAR* out = PathFindFileName(buffer);
}
错误信息:
ccQzTh4t.o:pathfind.cpp:(.text.startup+0x40): undefined reference to `_imp__PathFindFileNameA@4'
collect2: ld returned 1 exit status
也许我忘记了一些包括?