Closed codehz closed 2 years ago
command: nim c --gc:orc --d:useNimRtl anysource.nim
nim c --gc:orc --d:useNimRtl anysource.nim
Hint: used config file 'C:\Users\CodeHz\.choosenim\toolchains\nim-1.4.2\config\nim.cfg' [Conf] Hint: used config file 'C:\Users\CodeHz\.choosenim\toolchains\nim-1.4.2\config\config.nims' [Conf] . C:\Users\CodeHz\.choosenim\toolchains\nim-1.4.2\lib\system\mmdisp.nim(78, 25) template/generic instantiation of `instantiateForRegion` from here C:\Users\CodeHz\.choosenim\toolchains\nim-1.4.2\lib\system\alloc.nim(1030, 3) Error: redefinition of 'allocImpl'; previous declaration here: C:\Users\CodeHz\.choosenim\toolchains\nim-1.4.2\lib\system\memalloc.nim(38, 8)
(works)
no idea
Nim Compiler Version 1.4.2 [Windows: amd64] Compiled at 2020-11-30 Copyright (c) 2006-2020 by Andreas Rumpf active boot switches: -d:release
use -d:useMalloc
-d:useMalloc
the problem is the ORC still not working without NimRtl (cause crash when doing cycle collector that cross the dll boundary)
see also https://forum.nim-lang.org/t/8897
Example
command:
nim c --gc:orc --d:useNimRtl anysource.nim
Current Output
Expected Output
(works)
Possible Solution
no idea
Additional Information