Hey, I'm trying to do cinterop in order to use `kb...
# kotlin-native
c
Hey, I'm trying to do cinterop in order to use
kbhit()
from
conio.h
in my project. It seems to be working; however I have the full header path in my .def file:
Copy code
headers = D:\\Projects\\pilock\\gpio4k\\src\\nativeInterop\\cinterop\\input.h
Any way to make it work with a relative path?
headers = input.h
didn't work, despite the fact it's in the same directory as
input.def
… Google yielded no results
a
Are you using Gradle? The path can be relative to the project. Try putting the header in the same directory as the
build.gradle.kts
c
@Adam S Yes, I am using Gradle I also tried putting
headers = gpio4k/src/nativeInterop/cinterop/input.h
(which is the path relative to the project directory) and
headers = src/nativeInterop/cinterop/input.h
(relative to the
build.gradle.kts
(multi-module project)), none of these seemed to work correctly