Can't compile example project, log2 and exp2 identifier not found
Trying out Unreal for the first time and I'm stuck compiling the example project, when I made the new project it said could not build please retry in visual studio. So I tried rebuilding from there and I get these errors which I really have no clue how to solve,
1>c:\program files\epic games\4.7\engine\source\runtime\core\public\math\UnrealMathSSE.h(1035): error C3861: 'exp2': identifier not found
1>c:\program files\epic games\4.7\engine\source\runtime\core\public\math\UnrealMathSSE.h(1047): error C3861: 'log2': identifier not found
I feel like its caused by incorrect visual studio settings or me not downloading something anyone ran into this and/or got a solution?
EDIT: I'm pretty sure I could implement my own log2/exp2 to fix this but that feels wrong for some reason
Projects called LearningUnreal, in LearningUnreal.h I added
define log2(n) (double)(log(n)/log(2.0))
define exp2(n) (double)pow(2.0,(double)n)
before #include "EngineMinimal.h" to "fix" it.
answered Mar 03 '15 at 02:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here