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"

Deriving class from WebBrowser causes linker errors

Hi,

I created a WebBrowser derived class in the editor. However, that caused immediately a big bunch of linker errors.

 Severity    Code    Description
 Error    LNK2001    unresolved external symbol "public: virtual void __cdecl UVisual::BeginDestroy(void)" (?BeginDestroy@UVisual@@UEAAXXZ)
 Error    LNK2001    unresolved external symbol "public: virtual void __cdecl UVisual::BeginDestroy(void)" (?BeginDestroy@UVisual@@UEAAXXZ)
 Error    LNK2001    unresolved external symbol "public: virtual void __cdecl UWidget::ConnectEditorData(void)" (?ConnectEditorData@UWidget@@UEAAXXZ)
 Error    LNK2001    unresolved external symbol "public: virtual void __cdecl UWidget::ConnectEditorData(void)" (?ConnectEditorData@UWidget@@UEAAXXZ)
 Error    LNK2001    unresolved external symbol "public: virtual void __cdecl UWidget::FinishDestroy(void)" (?FinishDestroy@UWidget@@UEAAXXZ)
 Error    LNK2001    unresolved external symbol "public: virtual void __cdecl UWidget::FinishDestroy(void)" (?FinishDestroy@UWidget@@UEAAXXZ) 
 ...

I have included WebBrowser in the dependencies like this

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

But it does not help.

What might be wrong?

Product Version: UE 4.21
Tags:
more ▼

asked Jan 10 '19 at 07:34 AM in C++ Programming

avatar image

Teleporno
17 4 3 8

avatar image Teleporno Jan 10 '19 at 07:56 AM

Interesting notification is that if I start a clean project in 4.21.1, the WebBrowser is not available as a base class in the editor list.

In my project with the above errors, I am using a project that is originally created in UE 4.20.3 source version.

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

0 answers: sort voted first
Be the first one to answer this question
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