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"

Linker Error when Trying to add GameplayTasksComponent in C++

Hello! I'm quite new into C++, I'm trying to build a custom player controller in C++ with the GameplayTasks Component to be used in blueprints, but every time I add the component inside of the player controller class in the header file as follows I get an unresolved external symbol:

     UPROPERTY(EditAnywhere, Category = "Tasks")
     class UGameplayTasksComponent *Re_Gameplay_Tasks;

I have also tried to include the following headers in the main header file

"GameplayTask.h" "GameplayTasksComponent.h"

and as well I have added the following module to my build.cs

     PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "GameplayAbilities", "GameplayTasksEditor" });

The Linker Error I'm being thrown is fatal error LNK1120: 1 unresolved externals

I would love to see if anyone can shed light to me with this problem as I think I'm already shooting myself in the foot lol.

Thanks!

Product Version: UE 4.16
Tags:
more ▼

asked Aug 14 '17 at 02:13 PM in C++ Programming

avatar image

elisamuelps
19 3 5 9

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

1 answer: sort voted first

You might need "GameplayTasks" on top of "GameplayTasksEditor"

more ▼

answered Sep 06 '18 at 04:49 PM

avatar image

woppin
111 2 4 5

(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