Undefined symbols for architecture x86_64

Hey All,

This is an amazing course!, but I have a problem that I can’t solve. I’ve looked on the community forum and researched on the web.

Right now I’m using VS Code on section 3 part 44 “Instantiating Your Class” and everything has been going smooth until now. I keep getting this error

and I know it’s a linking issue but I have setup everything correctly so far.

I could really use the help.

Thanks,

Stephan

SOLVED! You have to compile both c++ files together

Thank you very much, I was struggling with this as well!

For those of you using VS Code, you need to type:

cl main.cpp FBullCowGame.cpp

Replacing main.cpp and FBull…cpp with whatever your two C++ files are called.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms