jerous86 / nimqt

Qt bindings for nim
GNU General Public License v2.0
101 stars 7 forks source link

compiling error on windows 11 #28

Closed ghost closed 1 year ago

ghost commented 1 year ago
C:\Users\faisal\Desktop\nimqt-main\examples>nim cpp hello.nim
Hint: used config file 'C:\nim-1.6.14\config\nim.cfg' [Conf]
Hint: used config file 'C:\nim-1.6.14\config\config.nims' [Conf]
...................................................................................................................................
C:\Users\faisal\.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qstring.nim(189, 1) Error: redefinition of 'arg'; previous declaration here: C:\Users\faisal\.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qstring.nim(179, 6)
Device name DESKTOP-SCHT1LN
Processor   Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz   2.90 GHz
Installed RAM   32.0 GB (31.8 GB usable)
Device ID   956E29D9-BA24-455D-820F-E3BD165E88A4
Product ID  00330-80000-00000-AA491
System type 64-bit operating system, x64-based processor
Pen and touch   No pen or touch input is available for this display
Edition Windows 11 Pro
Version 22H2
Installed on    ‎7/‎8/‎2023
OS build    22621.1992
Experience  Windows Feature Experience Pack 1000.22644.1000.0
jerous86 commented 1 year ago

Same issue as #30 cint == clong on windows, but not on other systems. The code to generate qstring.nim has some trouble taking this into account, when there are default values. Looking into it. A temporary fix is to comment them out.

jerous86 commented 1 year ago

I tracked it down to the fact that naming was inconsistent in qt, while my scripts assumed parameters where identically named. So I think it should be fixed now.

ghost commented 1 year ago

I tracked it down to the fact that naming was inconsistent in qt, while my scripts assumed parameters where identically named. So I think it should be fixed now.

thanks, shall i close this issue?

jerous86 commented 1 year ago

If the issue is resolved for you, then you can close it yes :)