Athanasopolous
Programmer
What causes the
no appropriate default constructor available
linker error
when I do have an constructor defined in the header file?
It is a link error
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.
no appropriate default constructor available
linker error
when I do have an constructor defined in the header file?
It is a link error
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.