Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C2259

C2259

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
5 Posts 3 Posters 0 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.
  • T Offline
    T Offline
    T RATHA KRISHNAN
    wrote on last edited by
    #1

    Hi! I got the following error: Error 1 error C2259: 'irr::gui::CImageGUISkin' : cannot instantiate abstract class d:\klagui\source\main.cpp 27 I checked the CImageGUISkin class for pure virtual functions. It has no pure virtual functions. Then why this error comes? How to resolve this error?

    N C 2 Replies Last reply
    0
    • T T RATHA KRISHNAN

      Hi! I got the following error: Error 1 error C2259: 'irr::gui::CImageGUISkin' : cannot instantiate abstract class d:\klagui\source\main.cpp 27 I checked the CImageGUISkin class for pure virtual functions. It has no pure virtual functions. Then why this error comes? How to resolve this error?

      N Offline
      N Offline
      Niklas L
      wrote on last edited by
      #2

      If CImageGUISkin inherits from other classes, you need to check them too, and make sure all pure virtual functions are overridden/defined.

      home

      T 1 Reply Last reply
      0
      • T T RATHA KRISHNAN

        Hi! I got the following error: Error 1 error C2259: 'irr::gui::CImageGUISkin' : cannot instantiate abstract class d:\klagui\source\main.cpp 27 I checked the CImageGUISkin class for pure virtual functions. It has no pure virtual functions. Then why this error comes? How to resolve this error?

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        Are you aware that there is an Irrlich forum (which can be accessed through their website) ? You'll have much more chance to get an answer there rather than asking Irrlicht specific questions on codeproject.

        Cédric Moonen Software developer
        Charting control [v3.0] OpenGL game tutorial in C++

        1 Reply Last reply
        0
        • N Niklas L

          If CImageGUISkin inherits from other classes, you need to check them too, and make sure all pure virtual functions are overridden/defined.

          home

          T Offline
          T Offline
          T RATHA KRISHNAN
          wrote on last edited by
          #4

          Parent class contains pure virtual functions. But if I try override those functions, I got the following errors: error C2259: 'irr::gui::CImageGUISkin' : cannot instantiate abstract class 1>d:\klagui\source\cimageguiskin.cpp(325) : error C2143: syntax error : missing ';' before 'irr::gui::CImageGUISkin::getColor' 1>d:\klagui\source\cimageguiskin.cpp(325) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\klagui\source\cimageguiskin.cpp(326) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\klagui\source\cimageguiskin.cpp(326) : error C2511: 'int irr::gui::CImageGUISkin::getColor(irr::gui::EGUI_DEFAULT_COLOR)' : overloaded member function not found in 'irr::gui::CImageGUISkin' 1> d:\klagui\source\cimageguiskin.h(37) : see declaration of 'irr::gui::CImageGUISkin'

          N 1 Reply Last reply
          0
          • T T RATHA KRISHNAN

            Parent class contains pure virtual functions. But if I try override those functions, I got the following errors: error C2259: 'irr::gui::CImageGUISkin' : cannot instantiate abstract class 1>d:\klagui\source\cimageguiskin.cpp(325) : error C2143: syntax error : missing ';' before 'irr::gui::CImageGUISkin::getColor' 1>d:\klagui\source\cimageguiskin.cpp(325) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\klagui\source\cimageguiskin.cpp(326) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\klagui\source\cimageguiskin.cpp(326) : error C2511: 'int irr::gui::CImageGUISkin::getColor(irr::gui::EGUI_DEFAULT_COLOR)' : overloaded member function not found in 'irr::gui::CImageGUISkin' 1> d:\klagui\source\cimageguiskin.h(37) : see declaration of 'irr::gui::CImageGUISkin'

            N Offline
            N Offline
            Niklas L
            wrote on last edited by
            #5

            There is something on the line d:\klagui\source\cimageguiskin.cpp(325) that the compiler doesn't understand. Usually a type name where you forgot to #include its declaration.

            home

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups