Error including header files in Unreal

I am new to Unreal and I have this project in Unreal. I have added some new cpp files which include some standard header files like string.h, stdlib etc. Intellisense does not give an error, but the project simply will not compile. This is mistake

Error 1 error : The first include statement in source file 'C:\<path>\Source\RoboRev_Win\Parser\Parser.cpp' is trying to include the file 'iostream' as the precompiled header, but that file could not be located in any of the module include search paths. C:\<path>\Intermediate\ProjectFiles\EXEC RoboRev_Win

I even tried the added paths to include directories in the project properties, but not to use. Can anybody help?

+4
source share
2 answers

I had this problem and it was fixed, making sure that the general title of the project is the first include statement in all my files:

If your project name is Foo, make sure you don't include anything above the line #include "Foo.h"

+2
source

, "YourFile.generated.h".

, ,

#include <regex>

#include "regex"

:

  • , ?
  • ++ ?
  • , ?
+1

All Articles