jerous86 / nimqt

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

NimQT with QT 6.6.1 on windows: cannot compile #37

Open Artiom-M opened 6 months ago

Artiom-M commented 6 months ago

I am trying nimqt on windows with QT 6.6.1 First I was getting errors like this: .nimble\pkgs\nimqt-0.1\nimqt\qtcore\qstring.nim(189, 1) Error: redefinition of 'arg'; previous declaration here: .nimble\pkgs\nimqt-0.1\nimqt\qtcore\qstring.nim(179, 6) I have commented out conflicting lines and now I am getting this instead:

g++.exe: error: unrecognized command-line option '-std:c++17'; did you mean '-std=c++17'?
g++.exe: error: unrecognized command-line option '-Zc:__cplusplus'
g++.exe: error: unrecognized command-line option '-permissive-'; did you mean '-fpermissive'?
g++.exe: error: unrecognized command-line option '-std:c++17'; did you mean '-std=c++17'?
g++.exe: error: unrecognized command-line option '-Zc:__cplusplus'
g++.exe: error: unrecognized command-line option '-permissive-'; did you mean '-fpermissive'?
g++.exe: error: unrecognized command-line option '-std:c++17'; did you mean '-std=c++17'?
g++.exe: error: unrecognized command-line option '-Zc:__cplusplus'
g++.exe: error: unrecognized command-line option '-permissive-'; did you mean '-fpermissive'?
g++.exe: error: unrecognized command-line option '-std:c++17'; did you mean '-std=c++17'?
g++.exe: error: unrecognized command-line option '-Zc:__cplusplus'
g++.exe: error: unrecognized command-line option '-std:c++17'; did you mean '-std=c++17'?

I am using Mingw from chocolately repo:

g++.exe (x86_64-posix-seh-rev0, Built by MinGW-Builds project) 13.2.0

Simple non QT example compiles with both, c and cpp backend.

jerous86 commented 6 months ago

Hi Artiom-M, thanks for reporting. I fixed the command-line options. The redefinition errors already were fixed, but only in #head, and as I'm using tags now, apparently the head is not installed, but the latest tagged version. But I pushed a new tag, so that should also be resolved :)