user1000227
user1000227

Reputation: 11

visual studio lnk2019 and 1120 error

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

Answers (1)

Cheers and hth. - Alf
Cheers and hth. - Alf

Reputation: 145419

you have a missing default constructor.

with some experience you'll learn to read error messages.

cheers & hth.,

Upvotes: 1

Related Questions