Unresolved External Symbol | Struct & Linker Error

I’m stumped on this one. Any help is appreciated.
Let me know if there is any required information for solving this that I haven’t already presented. Thanks in advance.

268104-harvest-data-cpp.png

I think this means, that you have a function in your header file that doesn’t exist in your cpp.

I thought that too, but I can’t find one and Visual Studios Intelisense isn’t giving me any syntax errors, which it always has done before if that were the case. Thanks though.

It says it is FStatusEffect::FStatusEffect(), which looks like the constructor of FStatusEffect. If you can’t figure it out, show me a screenshot of this class, both the .h and .cpp

I think you have to define the constructor of a struct in the header file.
Just type: FStatusEffect() { //functionality in here }

Also, try to remove the default values for the arguments and see if that works

Unfortunately, it didn’t work. Thanks again though.

And also remove the constructors from the cpp

I did but I didn’t work either.

Did you do that for all the functions and structs that were giving you the error? If so, do you still get the same errors?

Yes, that’s correct.

I did forward declare my structures in a separate file and then included them in the files I used them. I also don’t get any red squiggly line in visual studios. Thanks though.

Alright, can you upload your project somewhere so I can look into it?

I ran into some complications when trying to upload it to GitHub so I opted to upload it to Google Drive; I hope this isn’t a problem and that the files were uploaded correctly. Anyways, here is the sharable link: https://drive.google.com/drive/folders/1nMjX8DYFo-3eP34SBz4lp_blWt5umABF?usp=sharing

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.

I’m confused, didn’t I? Were you perhaps talking about a different structure of mine?

Weird. The source file was missing on your project you posted. I’ll take another look if that’s not the case in your master project.

268552-files.png

No problem, i’m gonna take a look tomorrow.

Apologies, I couldn’t find an alternative to google drive for uploading the project files (I tried github but ran into complications). It’s likely that StatusEffect.cpp wasn’t uploaded since a lot of other files were rejected (mainly .obj files).