Error compiling, C2512 and 2665?
-
My compiler is showing the following errors:
---> ProjectConvBase \ mainwindow.cpp: 9: Error: C2512: 'ED1 :: Stack': No appropriate default constructor available.
----> ProjectConvBase \ mainwindow.cpp: 32: error: C2665: 'QString :: number': none of the 7 overloads could convert all the argument types.
-
My compiler is showing the following errors:
---> ProjectConvBase \ mainwindow.cpp: 9: Error: C2512: 'ED1 :: Stack': No appropriate default constructor available.
----> ProjectConvBase \ mainwindow.cpp: 32: error: C2665: 'QString :: number': none of the 7 overloads could convert all the argument types.
@Larissa-F. Shouldn't you show your code? How can anybody say what exactly the problem is without the code?
But I will try:
"C2512: 'ED1 :: Stack': No appropriate default constructor available" - looks like there is no default constructor in ED1 :: Stack and you need to pass some parameters. Again - show the code.
"'QString :: number': none of the 7 overloads could convert all the argument types" - looks like you're passing wrong parameters to QString :: number - show the code. And check documentation http://doc.qt.io/qt-5/qstring.html#number