no appropriate default constructor available

Discussion in 'Web Design & Coding' started by Complete, Aug 3, 2007.

  1. Complete

    Complete OSNN Addict

    Messages:
    94
    What causes the "no appropriate default constructor available" linker error when I do have an constructor defined in the header file?
    It is an unresolved external symbol for the constructor
    LNK2019: unresolved external symbol "public: __thiscall CSomething::CSomething(class CSomethingelse *)

    and yet in the header file I have the constructor set up for that as:
    CSomething( CSomethingelse * psomethingelse)

    Which is how it is used in the cpp file.