jerous86 / nimqt

Qt bindings for nim
GNU General Public License v2.0
93 stars 6 forks source link

QString overloaded functions Windows problem #30

Closed matkuki closed 10 months ago

matkuki commented 10 months ago

Hi,

Specs:

After upgrading nimqt today, I get a lot of errors for the lines that I manually commented out in the below screenshot: image The errors that are thrown are:

C:\Users\matic\.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qstring.nim(189, 1) Error: redefinition of 'arg'; previous declaration here: C:\Users\matic\.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qstring.nim(179, 6)
stack trace: (most recent call last)
jerous86 commented 10 months ago

This one's already been reported. Will try to resolve it soon, but been busy lately. And the release of nim2 will not help :)

jerous86 commented 10 months ago

I think it should work now, can you confirm?

matkuki commented 10 months ago

Just reinstalled and still get this:

C:\Users\matic\.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qstring.nim(189, 1) Error: redefinition of 'arg'; previous declaration here: C:\Users\matic\.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qstring.nim(179, 6)
stack trace: (most recent call last)
jerous86 commented 10 months ago

That looks like the exact same line numbers as in the original issue, while they have changed, so it must be something with you having two versions, and using the wrong one.

I'll maybe should also update the version number of nimqt ... :)

matkuki commented 10 months ago

Hey @jerous86 ,

Just removed nimqt with nimble and checked it was deleted from the nimble directory, then reinstalled with:

$ nimble install https://github.com/jerous86/nimqt

... but the problem persists. And this is in my .nimble directory: image

jerous86 commented 10 months ago

There is something fishy going on since I've added some tags, and I think that's what causing some problems. Any idea for that?

nimble install https://github.com/jerous86/nimqt@#head

should install the latest version.