Reputation: 11
I have a class and a separate .cpp file with a main method. I get this when trying to compile
1> All outputs are up-to-date.
1>lab8.obj : error LNK2019: unresolved external symbol "public: __thiscall teams::teams(void)" (??0teams@@QAE@XZ) referenced in function _main
1>C:\Users\program.exe : fatal error LNK1120: 1 unresolved externals
The name of the class is "teams" Thanks for all the help
Upvotes: 0
Views: 207
Reputation: 145419
you have a missing default constructor.
with some experience you'll learn to read error messages.
cheers & hth.,
Upvotes: 1