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"

Link errors when extending UBatchLineComponent

I got some link errors when extending UBatchLineComponent this way:

 UCLASS(MinimalAPI)
 class UPBLineBatchComponent : public ULineBatchComponent
 {
     GENERATED_UCLASS_BODY()
 public:
     virtual void UpdateBounds();
     virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
     void SetTransform(const FTransform &Transform);
     FBoxSphereBounds LocalBounds;
 };

It gave me those errors:

 Error    5    error LNK2001: unresolved external symbol "public: virtual class FPrimitiveSceneProxy * __cdecl ULineBatchComponent::CreateSceneProxy(void)" (?CreateSceneProxy@ULineBatchComponent@@UEAAPEAVFPrimitiveSceneProxy@@XZ)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\Module.ProBuilderPlugin.2_of_2.cpp.obj    ProBuilder
 Error    6    error LNK2001: unresolved external symbol "public: virtual class FPrimitiveSceneProxy * __cdecl ULineBatchComponent::CreateSceneProxy(void)" (?CreateSceneProxy@ULineBatchComponent@@UEAAPEAVFPrimitiveSceneProxy@@XZ)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\ProBuilderPlugin.generated.cpp.obj    ProBuilder
 Error    9    error LNK2001: unresolved external symbol "public: virtual void __cdecl ULineBatchComponent::ApplyWorldOffset(struct FVector const &,bool)" (?ApplyWorldOffset@ULineBatchComponent@@UEAAXAEBUFVector@@_N@Z)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\Module.ProBuilderPlugin.2_of_2.cpp.obj    ProBuilder
 Error    10    error LNK2001: unresolved external symbol "public: virtual void __cdecl ULineBatchComponent::ApplyWorldOffset(struct FVector const &,bool)" (?ApplyWorldOffset@ULineBatchComponent@@UEAAXAEBUFVector@@_N@Z)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\ProBuilderPlugin.generated.cpp.obj    ProBuilder
 Error    1    error LNK2001: unresolved external symbol "public: virtual void __cdecl ULineBatchComponent::DrawLine(struct FVector const &,struct FVector const &,struct FLinearColor const &,unsigned char,float,float)" (?DrawLine@ULineBatchComponent@@UEAAXAEBUFVector@@0AEBUFLinearColor@@EMM@Z)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\Module.ProBuilderPlugin.2_of_2.cpp.obj    ProBuilder
 Error    2    error LNK2001: unresolved external symbol "public: virtual void __cdecl ULineBatchComponent::DrawLine(struct FVector const &,struct FVector const &,struct FLinearColor const &,unsigned char,float,float)" (?DrawLine@ULineBatchComponent@@UEAAXAEBUFVector@@0AEBUFLinearColor@@EMM@Z)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\ProBuilderPlugin.generated.cpp.obj    ProBuilder
 Error    3    error LNK2001: unresolved external symbol "public: virtual void __cdecl ULineBatchComponent::DrawPoint(struct FVector const &,struct FLinearColor const &,float,unsigned char,float)" (?DrawPoint@ULineBatchComponent@@UEAAXAEBUFVector@@AEBUFLinearColor@@MEM@Z)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\Module.ProBuilderPlugin.2_of_2.cpp.obj    ProBuilder
 Error    4    error LNK2001: unresolved external symbol "public: virtual void __cdecl ULineBatchComponent::DrawPoint(struct FVector const &,struct FLinearColor const &,float,unsigned char,float)" (?DrawPoint@ULineBatchComponent@@UEAAXAEBUFVector@@AEBUFLinearColor@@MEM@Z)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\ProBuilderPlugin.generated.cpp.obj    ProBuilder
 Error    7    error LNK2001: unresolved external symbol "public: virtual void __cdecl ULineBatchComponent::TickComponent(float,enum ELevelTick,struct FActorComponentTickFunction *)" (?TickComponent@ULineBatchComponent@@UEAAXMW4ELevelTick@@PEAUFActorComponentTickFunction@@@Z)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\Module.ProBuilderPlugin.2_of_2.cpp.obj    ProBuilder
 Error    8    error LNK2001: unresolved external symbol "public: virtual void __cdecl ULineBatchComponent::TickComponent(float,enum ELevelTick,struct FActorComponentTickFunction *)" (?TickComponent@ULineBatchComponent@@UEAAXMW4ELevelTick@@PEAUFActorComponentTickFunction@@@Z)    C:\Users\Yvain\Documents\ProBuilder\Intermediate\ProjectFiles\ProBuilderPlugin.generated.cpp.obj    ProBuilder


Product Version: UE 4.9
Tags:
more ▼

asked Mar 23 '16 at 10:06 AM in C++ Programming

avatar image

Arthur Masson
229 23 31 45

(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