PMunch / wxnim

Nim wrapper for wxWidgets.
MIT License
94 stars 11 forks source link

wx.nim produces illegal C++ code #4

Closed fredrikhr closed 7 years ago

fredrikhr commented 7 years ago

When compiling wx.nim the nim compiler produces illegal C++ code, probably because the nim bindings are incorrect in respect to the contents of the wxWidgets header files.

Examplary output from the VCC compiler backend: (generated by running: nim cpp examples/purewx/example1)

.\examples\purewx\nimcache\wxnim_wx.cpp(126): error C2440: '=': cannot convert from 'const char *' to 'NCSTRING'
.\examples\purewx\nimcache\wxnim_wx.cpp(126): note: Conversion loses qualifiers