So, I’m pretty new to Unreal Engine and C++. I was following the C++ Tank vs Zombies tutorial on YouTube, but on the 3rd video
I started to run into a problem. In my Gun.h class, I started to get an error on my #include “Gun.generated.h” class. It says: Cannot open source file “Gun.generated.h”.
I thought it was because of the “class AIceGirl” underneath it, so I commented that out and compiled the project again. But now I’m getting this error and I have no idea what it means.
upd: your error lnk1169
check if you connect the .cpp file twice
Check if you connect .cpp in the .h file
this is a common error in C ++ if the .cpp file is connected twice
Intellisense errors (the squiggly red line) aren’t real errors, generally speaking when using Unreal. Intellisense has a terrible time parsing UE code (which is why so many people use Visual Assist instead).
Your build is failing because “UIceGirlStatics::FindLookAtAngel2D” is apparently defined twice.