Anyone know what we're supposed to link in mingw f...
# kotlin-native
b
Anyone know what we're supposed to link in mingw for the
FOLDERID_Documents
constant/symbol? It's in
platform.windows.*
, but we're getting this linker error:
Copy code
undefined reference to `FOLDERID_Documents'
d
You can try defining it yourself in the .def file.
o
Have you tried
-lshell32
?
m
I'm not sure, but maybe because it returns
GUID
, and GUID is in
platgorm.posix.*
. (maybe it's bug - it logically should be in
platform.windows.*
- but I do not know how to fix).
b
-lshell32
didn't work. @olonho should I file a bug?
o
yeah, although from cursory look it seems to be an issue in mingw. Anyway, issue will not hurt.
👍 2
m
-luuid
👍 1
b
That did it! thanks!