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"

Template Linker Issues

So I've been fighting with this issue for a few days now with no progress and decided to post it here. I needed an FSkeletalMeshMerge for a project but was unhappy with the gamethread hit so began to try to write a new class to handle this in a customized manner.

I've run into a problem though in linking and have found no way to resolve it to date. Have been unable to find any similar posts in the AnswerHub which were helpful in any way. When linking I receive the following errors:

Error LNK2019 unresolved external symbol "private: void __cdecl FSkinWeightVertexBuffer::AllocateData(void)" (?AllocateData@FSkinWeightVertexBuffer@@AEAAXXZ) referenced in function "private: void __cdecl UMergedMeshComponent::NEWGenerateLODModel (int)" (??$NEWGenerateLODModel@U?$TGPUSkinVertexFloat16Uvs@$00@@U?$TSkinWeightInfo@$00@@@UMergedMeshComponent@@AEAAXH@Z) CleanThirdPerson E:\MyProject\Intermediate\ProjectFiles\MergedMeshComponent.cpp.obj 1 Error LNK2019 unresolved external symbol "public: void __cdecl FSkeletalMeshVertexBuffer::SetNeedsCPUAccess(bool)" (?SetNeedsCPUAccess@FSkeletalMeshVertexBuffer@@QEAAX_N@Z) referenced in function "private: void __cdecl UMergedMeshComponent::NEWGenerateLODModel (int)" (??$NEWGenerateLODModel@U?$TGPUSkinVertexFloat16Uvs@$00@@U?$TSkinWeightInfo@$00@@@UMergedMeshComponent@@AEAAXH@Z) CleanThirdPerson E:\MyProject\Intermediate\ProjectFiles\MergedMeshComponent.cpp.obj 1 Error LNK2019 unresolved external symbol "private: void __cdecl FSkeletalMeshVertexBuffer::AllocateData(void)" (?AllocateData@FSkeletalMeshVertexBuffer@@AEAAXXZ) referenced in function "private: void __cdecl UMergedMeshComponent::NEWGenerateLODModel (int)" (??$NEWGenerateLODModel@U?$TGPUSkinVertexFloat16Uvs@$00@@U?$TSkinWeightInfo@$00@@@UMergedMeshComponent@@AEAAXH@Z) CleanThirdPerson E:\MyProject\Intermediate\ProjectFiles\MergedMeshComponent.cpp.obj 1 Error LNK2019 unresolved external symbol "public: bool __cdecl FSkeletalMeshResource::RequiresCPUSkinning(enum ERHIFeatureLevel::Type)const " (?RequiresCPUSkinning@FSkeletalMeshResource@@QEBA_NW4Type@ERHIFeatureLevel@@@Z) referenced in function "private: void __cdecl UMergedMeshComponent::NEWGenerateLODModel (int)" (??$NEWGenerateLODModel@U?$TGPUSkinVertexFloat16Uvs@$00@@U?$TSkinWeightInfo@$00@@@UMergedMeshComponent@@AEAAXH@Z) CleanThirdPerson E:\MyProject\Intermediate\ProjectFiles\MergedMeshComponent.cpp.obj 1 Error LNK2019 unresolved external symbol "public: bool __cdecl FSkeletalMeshResource::HasExtraBoneInfluences(void)const " (?HasExtraBoneInfluences@FSkeletalMeshResource@@QEBA_NXZ) referenced in function "private: void __cdecl UMergedMeshComponent::NEWGenerateLODModel (int)" (??$NEWGenerateLODModel@U?$TGPUSkinVertexFloat16Uvs@$00@@U?$TSkinWeightInfo@$00@@@UMergedMeshComponent@@AEAAXH@Z) CleanThirdPerson E:\MyProject\Intermediate\ProjectFiles\MergedMeshComponent.cpp.obj 1

This appears to be related to the templates but I've found no way to get it to compile. Included all of the headers of every referenced file, have tried to use externs, API calls, defined classes in the .h, friending classes, etc. Being out of ideas I decided to bring it to the AnswerHub and hope that someone has found some similar issues before and knows a way to work around it.

Product Version: UE 4.16
Tags:
more ▼

asked Feb 12 '18 at 12:12 PM in C++ Programming

avatar image

J.C. Smith
56 5 6

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

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