Skip to content

Commit 78bc6aa

Browse files
committed
Platform: link against Pathcch.lib when using pathcch.h
The MSDN documentation indicates that you should link against the `Pathcch.lib` import library when using functions from `pathcch.h` which can also be verified by use functions failing to link due to unresolved symbols. Add the missing linking to enable autolinking for `WinSDK`.
1 parent 722cc75 commit 78bc6aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Platform/winsdk.modulemap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ module WinSDK [system] {
102102
module path {
103103
header "PathCch.h"
104104
export *
105+
106+
link "pathcch.lib"
105107
}
106108

107109
// api-ms-win-core-processthreads-l1-1-2.dll

0 commit comments

Comments
 (0)