[SOLVED] LNK2019, Error in compiling and Debugging in VS Code

Hi, I keep on receiving this error while I was trying to setup a debugger and compiling

This is what my launch.json looks like:

And I’m guessing the error relates to an issue between linking for each file, but my header for my main.cpp looks like this:

I’m quite sure I’ve included everything above, as it was working before until I began setting up the debugger, now both aren’t working. Any thoughts/ideas? Thanks!!

That would imply you aren’t compiling and linking the other file.

cl main.cpp FBullCowGame.cpp /EHsc

Hey, that fixed it!

Thanks, Dan!!

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

Privacy & Terms