Hi guys,
first-time poster, interested in starting a new project with Nimrod. Absolutely love the design and principles of the language! That said, I'm a long time Python user with not much experience with low-level languages.
I want to start a project that uses CEF, but unfortunately, there are no Nimrod bindings for it. I tried using the c2nim tool, but I'm getting parsing errors translating the C (or C++) header files.
Here's an example:
$ c2nim --cpp include/cef_base.h
include/cef_base.h(67, 24) Error: ';' expected
And translating C headers produces a similar error:
$ c2nim include/capi/cef_base_capi.h
include/capi/cef_base_capi.h(58, 21) Error: ')' expected
You can see the header files here.
So I have a few questions:
Thanks for your help, and sorry for the noobish question.
Fortunately you're wrong and a CEF wrapper already exists: https://github.com/Varriount/nimrod-libcef
Unfortunately I can't blame you for not finding it, as it's not a Babel package yet. :-/
I tried using the c2nim tool, but I'm getting parsing errors translating the C (or C++) header files.
Yeah, yeah I know. You need to edit the C files for c2nim. Once you get over that fact, c2nim is a really helpful tool.
Fortunately you're wrong and a CEF wrapper already exists: https://github.com/Varriount/nimrod-libcef
Whew, that's a relief. Thanks, I'll just use that.
Yeah, yeah I know. You need to edit the C files for c2nim.
I realize c2nim probably isn't meant to be used by newcomers such as myself, but it would be great to have some sort of guidance in the manual as to what exactly should be changed in the input files in cases like this (i.e. have some example walkthroughs of previous successful conversions and the steps taken).
Anyway, thanks again for your help!