Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error compiling, C2512 and 2665?

Error compiling, C2512 and 2665?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 778 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Larissa F.
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • L Larissa F.

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved