Skip to content

Unable to find an entry point named 'setWinCompilerSettings' in DLL 'hostnimforue'. #97

@Nocxr

Description

@Nocxr

Nim version: Nim Compiler Version 2.3.1 [Windows: amd64] Compiled at 2025-08-29
Nimble version: nimble v0.20.1 compiled at 2025-08-29 02:34:22
Unreal version: 5.6.1

When attempting to use the NimTemplate and run nue setup, I am running into 2 errors: "Unable to find entry point", and "Unable to instantiate module".

>>>> Task: ok <<<<
ok host built
Needs to generate pch types
>>>> Task: showtypes <<<<
There are 3242 PCH types
!!>> showtypes Time: 15 milliseconds, 124 microseconds, and 700 nanoseconds <<<<
!!>> ok Time: 17 milliseconds, 831 microseconds, and 900 nanoseconds <<<<
>>>> Task: setup <<<<
>>>> Task: creategame <<<<
!!>> creategame Time: 1 millisecond, 506 microseconds, and 100 nanoseconds <<<<
>>>> Task: ubuild <<<<
Targe files: @["F:\\projects\\unreal\\NimTemplate\\Source\\NimTemplateEditor.Target.cs"]
Target is NimTemplateEditor
Build\BatchFiles\Build.bat NimTemplateEditor Win64 Development "F:\projects\unreal\NimTemplate\NimTemplate.uproject" -waitmutex
Using bundled DotNet SDK version: 8.0.300 win-x64
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" NimTemplateEditor Win64 Development "F:\projects\unreal\NimTemplate\NimTemplate.uproject" -waitmutex
Log file: C:\Users\Admin\AppData\Local\UnrealBuildTool\Log.txt
Using 'git status' to determine working set for adaptive non-unity build (F:\projects\unreal\NimTemplate).
Creating makefile for NimTemplateEditor (no existing makefile)
F:\games\UE_5.6\Engine
== NimForUE.Build.cs - Running nimble ok==
nimble.exe
  Executing task ok in F:\projects\unreal\NimTemplate\Plugins\NimForUE\NimForUE.nimble
There was a problem trying to load Nim. Attention, make sure the EngineDir is set. Otherwise NimForUE wont compile.
Unable to find an entry point named 'setWinCompilerSettings' in DLL 'hostnimforue'.
   at NimForUE.setWinCompilerSettings(String sdkVersion, String compilerVersion, String toolchainDir)
   at NimForUE.AddNimForUEDev() in F:\projects\unreal\NimTemplate\Plugins\NimForUE\Source\NimForUE\NimForUE.Build.cs:line 155
Unable to instantiate module 'NimForUEBindings': System.EntryPointNotFoundException: Unable to find an entry point named 'getGameModules' in DLL 'hostnimforue'.
   at NimForUEBindings.getGameModules(Boolean withEditor)
   at NimForUEBindings..ctor(ReadOnlyTargetRules Target) in F:\projects\unreal\NimTemplate\Plugins\NimForUE\Source\NimForUEBindings\NimForUEBindings.Build.cs:line 58
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeConstructorWithoutAlloc(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
(referenced via NimTemplate.uproject -> NimForUE.uplugin)

Result: Failed (RulesError)
Total execution time: 1.73 seconds
nue.nim                  nue
nue.nim                  main
nue.nim                  setup
nue.nim                  ubuild
assertions.nim           failedAssertImpl
assertions.nim           raiseAssert
fatal.nim                sysFatal
Error: unhandled exception: nue.nim(195, 13) `execCmd(cmd) == 0`  [AssertionDefect]

The DLL dump shows those in fact do exist:

Microsoft (R) COFF/PE Dumper Version 14.44.35215.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file hostnimforue.dll

File Type: DLL

  Section contains the following exports for hostnimforue.dll

    00000000 characteristics
    FFFFFFFF time date stamp
        0.00 version
           1 ordinal base
          14 number of functions
          14 number of names

    ordinal hint RVA      name

          1    0 0000137F ?NimDestroyGlobals@@YAXXZ = @ILT+890(?NimDestroyGlobals@@YAXXZ)
          2    1 00001956 ?NimMain@@YAXXZ = @ILT+2385(?NimMain@@YAXXZ)
          3    2 00003049 ?checkReload@@YAXE@Z = @ILT+8260(?checkReload@@YAXE@Z)
          4    3 001456A0 ?currentLoadPhase@@3EA = ?currentLoadPhase@@3EA (unsigned char currentLoadPhase)
          5    4 00002239 ?ensureGuestIsCompiled@@YAXXZ = @ILT+4660(?ensureGuestIsCompiled@@YAXXZ)
          6    5 000010F5 ?genBindingsEntryPoint@@YAXXZ = @ILT+240(?genBindingsEntryPoint@@YAXXZ)
          7    6 00001983 ?getGameModules@@YAPEAD_N@Z = @ILT+2430(?getGameModules@@YAPEAD_N@Z)
          8    7 00003251 ?getNimBaseHeaderPath@@YAPEADXZ = @ILT+8780(?getNimBaseHeaderPath@@YAPEADXZ)
          9    8 000010F0 ?onLibLoaded@@YAXPEAD0HEPEAX@Z = @ILT+235(?onLibLoaded@@YAXPEAD0HEPEAX@Z)
         10    9 00004AC5 ?onLoadingPhaseChanged@@YAXEE@Z = @ILT+15040(?onLoadingPhaseChanged@@YAXEE@Z)
         11    A 000015B9 ?registerLogger@@YAXP6AXPEAD@Z@Z = @ILT+1460(?registerLogger@@YAXP6AXPEAD@Z@Z)
         12    B 00001EB0 ?reloadScriptGuest@@YAXXZ = @ILT+3755(?reloadScriptGuest@@YAXXZ)
         13    C 000038B9 ?setUEConfig@@YAXPEAD00_N@Z = @ILT+10420(?setUEConfig@@YAXPEAD00_N@Z)
         14    D 000041A6 ?setWinCompilerSettings@@YAXPEAD00@Z = @ILT+12705(?setWinCompilerSettings@@YAXPEAD00@Z)

  Summary

        1000 .00cfg
        C000 .data
        1000 .fptable
        2000 .idata
        B000 .pdata
       26000 .rdata
        2000 .reloc
      115000 .text

F:\projects\unreal\NimTemplate\Plugins\NimForUE\Binaries\nim>dumpbin /symbols hostnimforue.lib
Microsoft (R) COFF/PE Dumper Version 14.44.35215.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file hostnimforue.lib

File Type: LIBRARY

COFF SYMBOL TABLE
000 0101898F ABS    notype       Static       | @comp.id
001 00000000 SECT2  notype       External     | __IMPORT_DESCRIPTOR_hostnimforue
002 C0000040 SECT2  notype       Section      | .idata$2
003 00000000 SECT3  notype       Static       | .idata$6
004 C0000040 UNDEF  notype       Section      | .idata$4
005 C0000040 UNDEF  notype       Section      | .idata$5
006 00000000 UNDEF  notype       External     | __NULL_IMPORT_DESCRIPTOR
007 00000000 UNDEF  notype       External     | hostnimforue_NULL_THUNK_DATA

String Table Size = 0x5C bytes

COFF SYMBOL TABLE
000 0101898F ABS    notype       Static       | @comp.id
001 00000000 SECT2  notype       External     | __NULL_IMPORT_DESCRIPTOR

String Table Size = 0x1D bytes

COFF SYMBOL TABLE
000 0101898F ABS    notype       Static       | @comp.id
001 00000000 SECT2  notype       External     | hostnimforue_NULL_THUNK_DATA

String Table Size = 0x22 bytes

  Summary

          D2 .debug$S
          14 .idata$2
          14 .idata$3
           8 .idata$4
           8 .idata$5
          12 .idata$6

I have recloned the repo a few times and rerun the steps to no avail. I tested the .dll and .lib @jmgomez gave me in discord and those also failed.

Posting issue as requested and please let me know if you require any additional information or testing!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions