PSA: C++ unresolved externals can produce "Command exited with code 6."

Trying to compile the C++ project attached to a UE5 project that I’m struggling with, I got a cryptic error: the build batchfile command exited with code 6.

Googling around, I saw a thread on this forum saying that the problem was a stray quote in the Visual Studio project configuration, after the flag -Quiet. I checked my command lines in Configuration Properties >> NMake, and -quiet and stray quotes were nowhere to be seen.

Before posting this asking for help, it occurred to me to look carefully at the previous compiler lines – and there was an ordinary unresolved external, one line up from “command exited with code 6”! So, in the spirit of Stack Overflow, I’m posting the answer here instead of the question I was about to ask. I’m still really early on in learning Unreal, but hopefully this will be useful to the next demoralized newbie who gets this error in the midst of dealing with others…

1 Like

Make sure you don’t have the same plugin installed in the Editor and in the Game “Plugins” folder.

1 Like