merrell42 / model-synthesis

Model synthesis is a technique for generating 2D and 3D shapes from examples.
https://paulmerrell.org/model-synthesis/
Other
156 stars 18 forks source link

Bad Type Conversion #3

Closed HoodieCoder05 closed 6 months ago

HoodieCoder05 commented 6 months ago

running g++ Model\ Synthesis.cpp -o Model Synthesis get an error:


Model Synthesis.cpp:16:49: error: cannot convert ‘const wchar_t [12]’ to ‘const char*’
   16 |     XMLNode xMainNode = XMLNode::openFileHelper(L"samples.xml", L"samples");
      |                                                 ^~~~~~~~~~~~~~
      |                                                 |
      |                                                 const wchar_t [12]
In file included from Model Synthesis.cpp:3:```
merrell42 commented 6 months ago

I think my latest changes fixes this. I have a slightly different setup, so let me know if it works for you now. @HoodieCoder05 Thanks for reporting.