[Mono-ue] MonoEditor Linker error

Eugene Tchoukhrov ujen at vicogamestudio.com
Sat Nov 1 16:22:46 UTC 2014


Yes, I manually applied the patches to 4.5 release. I fixed that linker error by deleting the Patched GameProjectUtils.h and doing it manually to the new one.

 

But now I’m running into an issue with Enums that still have their prefix in C#, this causes C# build errors on the UE4_Bindings solution. For example in Canvas.cs, BlendMode.Translucent is still BlendMode.BLEND_Translucent.

 

I adjusted MonoScriptCodeGenerator accordingly for 4.5:

Line 1629 was changed from

if (!Enum->IsNamespaceEnum())

 

To:

if (Enum->GetCppForm() == UEnum::ECppForm::Regular)

 

What could be the issue here?

 

From: mono-ue-bounces at lists.ximian.com [mailto:mono-ue-bounces at lists.ximian.com] On Behalf Of Michael Hutchinson
Sent: Saturday, November 1, 2014 7:00 AM
To: Eugene Tchoukhrov
Cc: mono-ue at lists.ximian.com
Subject: Re: [Mono-ue] MonoEditor Linker error

 

Did you apply the engine patch set?

On Nov 1, 2014 9:47 AM, "Eugene Tchoukhrov" <vicogamestudio at live.com <mailto:vicogamestudio at live.com> > wrote:

I’m getting these linker errors:

1>Module.MonoEditor.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class FString __cdecl GameProjectUtils::FNewClassInfo::GetClassNameW(void)const " (__imp_?GetClassNameW at FNewClassInfo@GameProjectUtils@@QEBA?AVFString@@XZ) referenced in function "private: static bool __cdecl MonoEditorUtils::GenerateClassFile(class FString const &,class FString,struct GameProjectUtils::FNewClassInfo,class TArray<class FString,class FDefaultAllocator> const &,class FString const &,struct GameProjectUtils::FModuleContextInfo const &,class FText &)" (?GenerateClassFile at MonoEditorUtils@@CA_NAEBVFString@@V2 at UFNewClassInfo@GameProjectUtils@@AEBV?$TArray at VFString@@VFDefaultAllocator@@@@0AEBUFModuleContextInfo at 4@AEAVFText@@@Z)

1>Module.MonoEditor.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class FString __cdecl GameProjectUtils::FNewClassInfo::GetCleanClassName(class FString const &)const " (__imp_?GetCleanClassName at FNewClassInfo@GameProjectUtils@@QEBA?AVFString@@AEBV3@@Z) referenced in function "public: static bool __cdecl MonoEditorUtils::AddCodeToProject(struct GameProjectUtils::FModuleContextInfo const &,class FString const &,class FString const &,struct GameProjectUtils::FNewClassInfo,class FString &,class FText &)" (?AddCodeToProject at MonoEditorUtils@@SA_NAEBUFModuleContextInfo at GameProjectUtils@@AEBVFString@@1UFNewClassInfo at 3@AEAV4 at AEAVFText@@@Z)

1>Module.MonoEditor.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class FString __cdecl GameProjectUtils::FNewClassInfo::GetFinalClassName(class FString const &)const " (__imp_?GetFinalClassName at FNewClassInfo@GameProjectUtils@@QEBA?AVFString@@AEBV3@@Z) referenced in function "public: static bool __cdecl MonoEditorUtils::AddCodeToProject(struct GameProjectUtils::FModuleContextInfo const &,class FString const &,class FString const &,struct GameProjectUtils::FNewClassInfo,class FString &,class FText &)" (?AddCodeToProject at MonoEditorUtils@@SA_NAEBUFModuleContextInfo at GameProjectUtils@@AEBVFString@@1UFNewClassInfo at 3@AEAV4 at AEAVFText@@@Z)

1>Module.MonoEditor.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class FString __cdecl GameProjectUtils::FNewClassInfo::GetHeaderTemplateFilename(void)const " (__imp_?GetHeaderTemplateFilename at FNewClassInfo@GameProjectUtils@@QEBA?AVFString@@XZ) referenced in function "private: static bool __cdecl MonoEditorUtils::GenerateClassFile(class FString const &,class FString,struct GameProjectUtils::FNewClassInfo,class TArray<class FString,class FDefaultAllocator> const &,class FString const &,struct GameProjectUtils::FModuleContextInfo const &,class FText &)" (?GenerateClassFile at MonoEditorUtils@@CA_NAEBVFString@@V2 at UFNewClassInfo@GameProjectUtils@@AEBV?$TArray at VFString@@VFDefaultAllocator@@@@0AEBUFModuleContextInfo at 4@AEAVFText@@@Z)

1>Module.MonoEditor.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl GameProjectUtils::IsValidClassNameForCreation(class FString const &,struct GameProjectUtils::FModuleContextInfo const &,class FText &)" (__imp_?IsValidClassNameForCreation at GameProjectUtils@@SA_NAEBVFString@@AEBUFModuleContextInfo at 1@AEAVFText@@@Z) referenced in function "public: static bool __cdecl MonoEditorUtils::AddCodeToProject(struct GameProjectUtils::FModuleContextInfo const &,class FString const &,class FString const &,struct GameProjectUtils::FNewClassInfo,class FString &,class FText &)" (?AddCodeToProject at MonoEditorUtils@@SA_NAEBUFModuleContextInfo at GameProjectUtils@@AEBVFString@@1UFNewClassInfo at 3@AEAV4 at AEAVFText@@@Z)

1>Module.MonoEditor.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class FString __cdecl GameProjectUtils::MakeCopyrightLine(void)" (__imp_?MakeCopyrightLine at GameProjectUtils@@SA?AVFString@@XZ) referenced in function "private: static bool __cdecl MonoEditorUtils::GenerateClassFile(class FString const &,class FString,struct GameProjectUtils::FNewClassInfo,class TArray<class FString,class FDefaultAllocator> const &,class FString const &,struct GameProjectUtils::FModuleContextInfo const &,class FText &)" (?GenerateClassFile at MonoEditorUtils@@CA_NAEBVFString@@V2 at UFNewClassInfo@GameProjectUtils@@AEBV?$TArray at VFString@@VFDefaultAllocator@@@@0AEBUFModuleContextInfo at 4@AEAVFText@@@Z)

1>Module.MonoEditor.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl GameProjectUtils::DeleteCreatedFiles(class FString const &,class TArray<class FString,class FDefaultAllocator> const &)" (__imp_?DeleteCreatedFiles at GameProjectUtils@@SAXAEBVFString@@AEBV?$TArray at VFString@@VFDefaultAllocator@@@@@Z) referenced in function "public: static bool __cdecl MonoEditorUtils::AddCodeToProject(struct GameProjectUtils::FModuleContextInfo const &,class FString const &,class FString const &,struct GameProjectUtils::FNewClassInfo,class FString &,class FText &)" (?AddCodeToProject at MonoEditorUtils@@SA_NAEBUFModuleContextInfo at GameProjectUtils@@AEBVFString@@1UFNewClassInfo at 3@AEAV4 at AEAVFText@@@Z)

1>Module.MonoEditor.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl GameProjectUtils::WriteOutputFile(class FString const &,class FString const &,class FText &)" (__imp_?WriteOutputFile at GameProjectUtils@@SA_NAEBVFString@@0AEAVFText@@@Z) referenced in function "private: static bool __cdecl MonoEditorUtils::GenerateClassFile(class FString const &,class FString,struct GameProjectUtils::FNewClassInfo,class TArray<class FString,class FDefaultAllocator> const &,class FString const &,struct GameProjectUtils::FModuleContextInfo const &,class FText &)" (?GenerateClassFile at MonoEditorUtils@@CA_NAEBVFString@@V2 at UFNewClassInfo@GameProjectUtils@@AEBV?$TArray at VFString@@VFDefaultAllocator@@@@0AEBUFModuleContextInfo at 4@AEAVFText@@@Z)

1>G:\UE4-WorkingCopy\Engine\Plugins\XamarinUE4\MonoRuntime\Binaries\Win64\UE4Editor-MonoEditor.dll : fatal error LNK1120: 8 unresolved externals

 

I have included the GameProjectGeneration module in MonoEditor.Build.cs.

 

Any idea what’s going on?


_______________________________________________
Mono-ue mailing list
Mono-ue at lists.ximian.com <mailto:Mono-ue at lists.ximian.com> 
http://lists.ximian.com/mailman/listinfo/mono-ue

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-ue/attachments/20141101/fbda3d37/attachment.html>


More information about the Mono-ue mailing list