TheHubbit / PyInventor

3D Graphics in Python with Open Inventor
http://thehubbit.github.io/PyInventor
BSD 3-Clause "New" or "Revised" License
16 stars 8 forks source link

compile fails with invalid conversion #11

Open foobarbecue opened 1 year ago

foobarbecue commented 1 year ago
src/PySceneObject.cpp:775:48: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
  775 |                         type = PyUnicode_AsUTF8(className);
      |                                ~~~~~~~~~~~~~~~~^~~~~~~~~~~
      |                                                |
      |                                                const char*
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
foobarbecue commented 1 year ago

Adding -fpermissive allowed compilation to complete.