コード:
#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
たぶん私はいくつかのインクルードを忘れましたか?