Menu

Compiler errors with MSVC 2015, Qt 5.6

Help
2016-07-21
2016-07-21
  • Olav Sortland Thoresen

    Hi,

    I ran into some compiler errors while trying to compile on windows. I'm using MSVC 2015, Qt 5.6 and Python 3.5.
    First there was an issue with PythonQtConversion.cpp:

    .\PythonQtConversion.cpp(1511): error C2143: syntax error: missing ';' before '}'

    This was easily fixed by adding a semicolon in the PythonQtConv::isStringType method.

    I then ran into another issue:

    .\PythonQtSlotDecorator.cpp(45): error C2440: 'initializing': cannot convert from 'const char [5]' to 'char '
    .\PythonQtSlotDecorator.cpp(45): note: Conversion from string literal loses const qualifier (see /Zc:strictStrings)
    .\PythonQtSlotDecorator.cpp(45): error C2440: 'initializing': cannot convert from 'const char [7]' to 'char
    '
    .\PythonQtSlotDecorator.cpp(45): note: Conversion from string literal loses const qualifier (see /Zc:strictStrings)

    I haven't worked this one out yet. Any help would be appreciated! :)

     

    Last edit: Olav Sortland Thoresen 2016-07-21
  • Florian Link

    Florian Link - 2016-07-21

    Thanks for the report, I fixed both on the SVN trunk.

    The MSVC 2015 problem can also be solved by a newer service pack or different compiler options, but I fixed it anyways.

     
  • Olav Sortland Thoresen

    Awesome, compiles fine now! Thanks alot.

     
  • Florian Link

    Florian Link - 2016-07-21

    Sorry for the inconvenience! I should test with PY3K more regular...

     

Log in to post a comment.