Unresolved External Symbol | Struct & Linker Error
I fixed 2 of the 3 remaining errors and I'm fairly sure I can fix the final errors. One error was because the constructor for one of my structures was in a source file (.cpp) that was created in the intermediate folder rather than the source folder. This is because by default Visual Studios creates files there for Unreal Project, I knew this and thought I had a handle on it but at some point, I slipped up and accidentally created a file without changing the file creation location. The other error was because I declared a constructor in a struct that didn't need one, so I never defined it and that caused an error which I fixed by removing the declaration. The last error was caused by me creating a variable of type UUserWidget (it was also a pointer), I think this might be caused by the need of a line of code in the build.cs file for you to be able to utilize UUserWidger, but I am not sure in the slightest. Unfortunately, after removing the line of code declaring the UUserWidget variable and as well as removing he include for it, the engine crashed during a hot reload. Now I can't get it to open, and this is what I'm currently trying to debug.
answered Feb 14 '19 at 01:08 AM
I think this means, that you have a function in your header file that doesn't exist in your cpp.
answered Feb 07 '19 at 12:25 PM
You forgot to define the constructor for FStatusEffect in the source file. You declare it but never define it.
If you fix that up, everything else seems fine from what I can see at a glance.
answered Feb 13 '19 at 11:20 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here