x

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 not include header file

Hi there,

I guess this is a question with a rather easy answer but I can't seem to figure it out by myself.

I am modifying some engine code (see my question about Java code) and want to include a class from my project to call a function of it. So I have an engine class AndroidJNI.cpp (or I guess any other engine file) and want to include a header file from my project MyActorA.h.I thought this simply works by writing:

 #include <MyActorA.h>

and putting the path to this file ( D:\UE4\MyProject\Source\MyProject) in my PATH and/or the VC++ Directories > Include Directories of VS2013. Compiling the code works fine and the Editor starts but when building for Android I get an error stating

 UnrealBuildTool: D:\UE4\Engine\Source\Runtime\Launch\Private\Android\AndroidJNI.cpp(7,10) :  fatal error: 'MyActorA.h' file not found

in the output logs.

Do I have to specify extra include directories for the UnrealBuildTool?

I have the strong feeling that either my environment is not setup correctly or I am doing something very bad. Any ideas on that?

Product Version: Not Selected
Tags:
more ▼

asked Mar 26 '15 at 05:35 PM in C++ Programming

avatar image

trutty
541 29 33 181

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello,

Try #include "MyActorA.h". :)

Ardakaniz

more ▼

answered Jun 24 '15 at 02:21 PM

avatar image

Ardakaniz
15 2 6 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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