Now that I have two CPP files. I have to run the code by typing in “cl main.cpp FBullCowGame.cpp” every time or it gives me linker issues when I try to run the program
if I just do “cl main.cpp” and then run it, this is what happens
main.obj : error LNK2019: unresolved external symbol "public: int __thiscall FBullCowGame::GetMaxTries(void)" (?GetMaxTries@FBullCowGame@@QAEHXZ) referenced in function "void __cdecl PlayGame(void)" (?PlayGame@@YAXXZ)
main.exe : fatal error LNK1120: 1 unresolved externals
is there a way I can link every cpp without typing in them all in every time in the terminal
I included the header in both CPP’s I thought the compiler would link them for me