[Closed] [SOLVED] Static Class/Variables, unresolved external issue.
Moral of this question: Don't code on an empty stomach and after a long day at work. I simply (read: like an idiot) forgot to actually declare the variables in my static CPP file.
I followed a wiki tutorial located here: https://wiki.unrealengine.com/Static_Function_Libraries,_Your_Own_Version_of_UE4_C%2B%2B,_No_Engine_Compile_Times
I have a function called "TestFunction" that is static that I am successfully calling as a static from another class. However, I also have some variables within this static class, but, I'm having trouble assigning or using them, I repeatedly get "unresolved externals" on them. Maybe, I'm just tired, but, here's what I have in the static class:
ACalculator is literally just an Actor class that I have in my program that was written in C++ as well (I do everything through C++.) ACalculator works just fine in and of itself when used as an object, and I have been using it for weeks, however, again, unresolved external when attempting to implement a static version of it into this static class.
The same goes for the two TArray, both are unresolved externals if I attempt to access, assign, or use them (stack or heap, pointer or not.)
Anyone with any ideas on what would clear this up I'd love to hear from.
Any extra information that you want please feel free to ask. Thanks in advance.
The question has been closed Jun 07 '14 at 04:32 PM by Jamie Dale for the following reason:
User answered their own question :)
Follow this question
Once you sign in you will be able to subscribe for any updates here