multiple definition of NimMainInner

2022-03-23 Thread PMunch
This does indeed seem to be a bug, or at least something that hasn't been properly tested. IMO the `--nimMainPrefix` should apply to all the `*Main*` procedures (and probably `initStackBottomWith` as well, this would at least partially solve the issue. That being said most of the procedures gene

multiple definition of NimMainInner

2022-03-23 Thread mros
It is the same with this version: $ ../Nim-devel/bin/nim -v Nim Compiler Version 1.7.1 [Linux: amd64] Compiled at 2022-03-23 Copyright (c) 2006-2022 by Andreas Rumpf active boot switches: -d:release Run

multiple definition of NimMainInner

2022-03-23 Thread mros
No, I'm using `1.6.2`: $ nim -v Nim Compiler Version 1.6.2 [Linux: amd64] Compiled at 2021-12-17 Copyright (c) 2006-2021 by Andreas Rumpf git hash: 9084d9bc02bcd983b81a4c76a05f27b9ce2707dd active boot switches: -d:release Run I try the "devel" b

multiple definition of NimMainInner

2022-03-22 Thread Araq
Good question. Tried "nim devel"?

multiple definition of NimMainInner

2022-03-22 Thread mros
@mlibB.nim.c:(.text+0x0): multiple definition of `NimMainInner' Run and the same happens on `PreMainInner`, `PreMain` and `NimMainModule`. I compile all the libraries in this way: nim c -d:danger --opt:size --mm:orc --app:staticlib --no_main --header --nimMainPref