Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Dwmapi.dll is not linked #3135

Closed
Trumeet opened this issue Jul 1, 2019 · 3 comments
Closed

Dwmapi.dll is not linked #3135

Trumeet opened this issue Jul 1, 2019 · 3 comments

Comments

@Trumeet
Copy link

Trumeet commented Jul 1, 2019

While I was trying to use the Dwm APIs in the platform library for Windows, I discovered that the required DLL dwmapi.dll is not seemed to be linked in the def file.

Unfortunately, I do not understand any C/C++ stuff so I'm afraid I cannot give the further information if any.

See:

headers = wtypes.h minwindef.h windows.h commctrl.h dwmapi.h shlobj.h shlwapi.h shobjidl.h \

https://docs.microsoft.com/en-ca/windows/desktop/api/dwmapi/nf-dwmapi-dwmextendframeintoclientarea#requirements

The compile error:

C:\Users\yuutaw\AppData\Local\Temp\konan_temp8122729484653105859\combined.o:(.text+0x29159): undefined reference to `DwmExtendFrameIntoClientArea'
@msink
Copy link
Contributor

msink commented Jul 1, 2019

for kotlinc-native:
-linker-option -ldwmapi

Or for build.gradle.kts:

kotlin {
    mingwX86().binaries.executable {
        linkerOpts("-ldwmapi")
    }
}

@Trumeet
Copy link
Author

Trumeet commented Jul 1, 2019

for kotlinc-native:
-linker-option -ldwmapi

Or for build.gradle.kts:

kotlin {
    mingwX86().binaries.executable {
        linkerOpts("-ldwmapi")
    }
}

Thanks and it works!

Are there any plans to link this library in the platform library def file?

@ilmat192
Copy link
Contributor

Fixed by #4511.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants