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"

How can I resolve a Linker error in TextRenderComponent::SetText() method?

I was trying to set the text in a text render component from C++ to help me debug something.

For some reason, there's a linker error when I call the SetText method. I even tried syncing the latest source and recompiling everything.

I was able to get around it by just taking the 2 lines in the body of SetText and pasting them where I was trying to set the text.

Product Version: Not Selected
Tags:
more ▼

asked May 14 '14 at 05:08 PM in C++ Programming

avatar image

illYay
340 29 41 50

avatar image Tim C ♦♦ STAFF May 14 '14 at 05:22 PM

Hi illYay. Could you please provide some more information about the error message you are receiving? Where are you calling SetText(), and what is the exact error message you are receiving?

avatar image illYay May 15 '14 at 06:19 AM

Looks like Marc answered down below.

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

1 answer: sort voted first

TextRenderComponent was not fully exposed for linking across modules in 4.1. This has been resolved in 4.2. If you would like to apply the changes locally please see https://github.com/EpicGames/UnrealEngine/commit/8fd08e7b1ac677d6a1be75fbe6e3db347adc1b32

more ▼

answered May 14 '14 at 05:38 PM

avatar image

Marc Audy STAFF
2.2k 42 35 95

(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