Re: Help wrapping C library in Nim using const char*

2017-12-09 Thread Udiknedormin
Compiles just fine for my Nim 0.17.2.

Re: Help wrapping C library in Nim using const char*

2017-12-08 Thread treeform
What error do you get? The other two GLFW wrappers just use cstring and it works for them? [https://github.com/ephja/nim-glfw/search?utf8=%E2%9C%93&q=GetVersionString&type](https://github.com/ephja/nim-glfw/search?utf8=%E2%9C%93&q=GetVersionString&type)= [https://github.com/rafaelvasco/nimrod-gl

Help wrapping C library in Nim using const char*

2017-12-08 Thread CavariuX
Hi, sorry for the trouble but I'm having difficulties wrapping a const char* I can't use cstring since the compiler complains that it's char* and not a const char* I have read the docs but no luck for me Thanks in advance. Code: {.link: "libglfw.3.2.dylib".} const