Compiling LibreCad-2.2.0.alpha on Windows 10 with Qt 4.4.1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Compiling LibreCad-2.2.0.alpha on Windows 10 with Qt 4.4.1

mad-hattter
Hello,

With the new version of Qt, I get these errors compiling LibreCad - 2.2.0.alpha
Qt Creator 4.4.1
Based on Qt 5.9.2 (MSVC 2015, 32 bit)
gcc version 5.3.0

I don't know if its the compiler (gcc) or the source.
It compiled ok with the previous version of Qt and an earlier version of gcc.
I have to go back to  the previous version of Qt.

Regards

\librecad\src\lib\math\rs_math.cpp:305: error: no matching function for call to 'mu::Parser::DefineConst(const char [3], double)'
         p.DefineConst("pi",M_PI);
                                ^
\librecad\src\lib\math\rs_math.cpp:306: error: no matching function for call to 'mu::Parser::SetExpr(std::__cxx11::string)'
         p.SetExpr(expr_copy.toStdString());
                                          ^
\librecad\src\lib\math\rs_math.cpp:312: error: no match for 'operator<<' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const string_type {aka const std::__cxx11::basic_string<wchar_t>}')
         std::cout << e.GetMsg() << std::endl;
                   ^
\librecad\src\lib\math\rs_math.cpp:312: error: cannot bind 'std::ostream {aka std::basic_ostream<char>}' lvalue to 'std::basic_ostream<char>&&'
         std::cout << e.GetMsg() << std::endl;
                               ^