I found the [nimqt](https://github.com/jerous86/nimqt) library, installed qt. 
But I can't compile the EXAMPLES( It's because of wrong compilation arguments, 
as g++ says:

Нашел я библеотеку [nimqt](https://github.com/jerous86/nimqt), установил qt. Но 
вот блин, компиляция ПРИМЕРОВ не идет( Дело в неправельных аргументах 
компиляции, так пишет g++:
    
    
    C:\Users\user\nimqt\examples>nim cpp -r hello.nim
    Hint: used config file 'D:\nim-2.0.2\config\nim.cfg' [Conf]
    Hint: used config file 'D:\nim-2.0.2\config\config.nims' [Conf]
    
.........................................................................................................................................
    
C:\Users\user\.nimble\pkgs2\nimqt-0.2.1-793dfd1b190344b2330ab5b5d086cb9f3fcf3c35\nimqt.nim(377,
 9) Hint: 'cpp_param_types0' is declared but not used [XDeclaredButNotUsed]
    ...................................................................
    
C:\Users\user\.nimble\pkgs2\nimqt-0.2.1-793dfd1b190344b2330ab5b5d086cb9f3fcf3c35\nimqt\qtgui\qimage.nim(135,
 20) Hint: duplicate import of 'qstring'; previous import here: 
C:\Users\user\.nimble\pkgs2\nimqt-0.2.1-793dfd1b190344b2330ab5b5d086cb9f3fcf3c35\nimqt\qtgui\qimage.nim(17,
 20) [DuplicateModuleImport]
    .............................................
    
C:\Users\user\.nimble\pkgs2\nimqt-0.2.1-793dfd1b190344b2330ab5b5d086cb9f3fcf3c35\nimqt.nim(43,
 11) Hint: 'QtInstallLibs' is declared but not used [XDeclaredButNotUsed]
    ....................
    CC: D:/nim-2.0.2/lib/system/exceptions.nim
    CC: D:/nim-2.0.2/lib/std/private/digitsutils.nim
    CC: D:/nim-2.0.2/lib/std/assertions.nim
    CC: D:/nim-2.0.2/lib/system/dollars.nim
    g++.exe: error: unrecognized command-line option '-Zc=__cplusplus'
    Error: execution of an external compiler program 'g++.exe -c -std=gnu++17 
-funsigned-char  -w -fmax-errors=3 -fpermissive -mno-ms-bitfields 
-DWIN32_LEAN_AND_MEAN -std=c++17 -IC:\Users\us r\.nimblg++.exe:e   gs2\nimqt-0 
.2. -793dfd1error: b 90344b2330ab5b5dunrecognized command-line option '086c 
9f3-Zc=__cplusplusf f3c35 -fper'
    missive -Zc=__cplusplus -std=c++17 -ID:/Qt/Tools/QtDesignStudio/qt6 
design_studio_reduced_version/include -ID:/Qt/Tools/QtDesignStudio/qt6g++.exe:_ 
esign_studio_reduced_version/include \Q Widgets -ID:/Qt/Toerror: o 
s/QtDesignStudio/qt6unrecognized command-line option '_de 
ign_stu-Zc=__cplusplusdio_'
    reduced_version/include\QtGui 
-ID:/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/include\QtCore 
-ID:/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/include\..\mkspecs\win32-msvc
 /Zc:strictStrings- shell32.lib   -ID:\nim-2.0.2\lib 
-IC:\Users\user\nimqt\examples -o 
C:\Users\user\nimcache\hello_d\@mD@c@snim-2.0.2@slib@ssys...@sexceptions.nim.cpp.o
 
C:\Users\user\nimcache\hello_d\@mD@c@snim-2.0.2@slib@ssys...@sexceptions.nim.cpp'
 failed with exit code: 1
    
    
    g++.exe: error: unrecognized command-line option '-Zc=__cplusplus'
    
    
    Run

I have roughly understood which parameters do not work, but I have not studied 
C++ and I am asking for your help. 
[Here](https://github.com/jerous86/nimqt/blob/98e1f62e0e11b234bdee67f22a580930f04fcdb6/qt/6.4.3_most/nimqt.nim#L44C1-L45C55)
 is the compilation command itself. Looking for information about this error, I 
found out that nimqt compilation arguments that are passed to the command line 
use 
[msvc](https://stackoverflow.com/questions/67824944/unrecognized-command-line-option-zc-cplusplus-and-unrecognized-command-line).
 But nim can compile to c/c++ using mingw instead of cl.

Я примерно понял какие параметры не работают, но с++ я не учил и прошу помощи у 
вас. 
[Вот](https://github.com/jerous86/nimqt/blob/98e1f62e0e11b234bdee67f22a580930f04fcdb6/qt/6.4.3_most/nimqt.nim#L44C1-L45C55)
 сама команда компиляции. Ища информацию по поводу этой ошибки, я узнал что 
аргументы компиляции nimqt которые передаются в команнудную строку, использует 
[msvc](https://stackoverflow.com/questions/67824944/unrecognized-command-line-option-zc-cplusplus-and-unrecognized-command-line).
 Но nim может компилировать в c/c++, используя mingw а не cl.

Reply via email to