Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: Not Selected
more ▼

asked Mar 03 '15 at 01:52 PM in C++ Programming

avatar image

0 2 3 3

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Mar 03 '15 at 02:26 PM

avatar image

0 2 3 3

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question