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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Error LNK2001 FTextureRenderTargetCubeResource

Hey Guys!

I've got a question.

Im trying to save 'UTextureRenderTargetCube* InRenderTargetCube' to a PNG file. After I call a constructor - FTextureRenderTargetCubeResource* RTResource = new FTextureRenderTargetCubeResource(InRenderTargetCube). i've got this error while compile. I've added this modules to *Build.cs file:

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


Error:

 Severity    Code    Description    Project    File    Line    Suppression State
 Error    LNK2001    unresolved external symbol "public: virtual float __cdecl FTextureRenderTargetResource::GetDisplayGamma(void)const " (?GetDisplayGamma@FTextureRenderTargetResource@@UEBAMXZ)    Inside    D:\Unreal Engine\Projects\Inside 4.10\Intermediate\ProjectFiles\SaveImage.cpp.obj    1    
 Error    LNK2001    unresolved external symbol "public: virtual void __cdecl FTextureRenderTargetCubeResource::InitDynamicRHI(void)" (?InitDynamicRHI@FTextureRenderTargetCubeResource@@UEAAXXZ)    Inside    D:\Unreal Engine\Projects\Inside 4.10\Intermediate\ProjectFiles\SaveImage.cpp.obj    1    
 Error    LNK2001    unresolved external symbol "public: virtual void __cdecl FTextureRenderTargetCubeResource::ReleaseDynamicRHI(void)" (?ReleaseDynamicRHI@FTextureRenderTargetCubeResource@@UEAAXXZ)    Inside    D:\Unreal Engine\Projects\Inside 4.10\Intermediate\ProjectFiles\SaveImage.cpp.obj    1    
 Error    LNK2001    unresolved external symbol "public: virtual struct FIntPoint __cdecl FTextureRenderTargetCubeResource::GetSizeXY(void)const " (?GetSizeXY@FTextureRenderTargetCubeResource@@UEBA?AUFIntPoint@@XZ)    Inside    D:\Unreal Engine\Projects\Inside 4.10\Intermediate\ProjectFiles\SaveImage.cpp.obj    1    
 Error    LNK2001    unresolved external symbol "public: virtual float __cdecl FTextureRenderTargetCubeResource::GetDisplayGamma(void)const " (?GetDisplayGamma@FTextureRenderTargetCubeResource@@UEBAMXZ)    Inside    D:\Unreal Engine\Projects\Inside 4.10\Intermediate\ProjectFiles\SaveImage.cpp.obj    1    
 Error    LNK2001    unresolved external symbol "protected: virtual void __cdecl FTextureRenderTargetCubeResource::UpdateDeferredResource(class FRHICommandListImmediate &,bool)" (?UpdateDeferredResource@FTextureRenderTargetCubeResource@@MEAAXAEAVFRHICommandListImmediate@@_N@Z)    Inside    D:\Unreal Engine\Projects\Inside 4.10\Intermediate\ProjectFiles\SaveImage.cpp.obj    1    
 Error    LNK1120    6 unresolved externals    Inside    D:\Unreal Engine\Projects\Inside 4.10\Binaries\Win64\UE4Editor-Inside-9443.dll    1    
 Error        Failed to produce item: D:\Unreal Engine\Projects\Inside 4.10\Binaries\Win64\UE4Editor-Inside-9443.dll    Inside    D:\Unreal Engine\Projects\Inside 4.10\Intermediate\ProjectFiles\ERROR    1    
 Error    MSB3073    The command ""D:\Unreal Engine\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat" InsideEditor Win64 Development "D:\Unreal Engine\Projects\Inside 4.10\Inside.uproject" -rocket -waitmutex -2015" exited with code -1.    Inside    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets    37    


Product Version: UE 4.10
Tags:
more ▼

asked Feb 25 '16 at 04:10 PM in C++ Programming

avatar image

HOMPAIN
6 1

(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