Configure completely QT environment (compiler, add libraries and flags)
-
Hi everyone, I've a problem with the compiler and how to add libraries and flags:
How can I configure the QT-Creator to work with my /msys64/mingw64 environment, both compiler with my own libstdc++, with the compilation flags that I require, and link to the libraries in /msys64/mingw64/lib?
I know I have to go to KITS, and I've included my specific compiler (gcc13), but I need to add the libraries and flags, related with -std=c++23. I've wrote a list with doubs related with this, I show you that and I hope you can help me!
KIT
- Add C:/msys64/mingw64/include -- to access libstdc++ *.h files, because otherwise I access the default includes of mingw within Qt (version of g++ 11)
- We have to add C:/msys64/mingw64/lib to link correctly. But how I do that?
I hope I've explained good...
Regards!
-
@RaulJN8 said in Configure completely QT environment (compiler, add libraries and flags):
We have to add C:/msys64/mingw64/lib to link correctly. But how I do that?
Specify it in your CMakeLists.txt like any other compiler or linker option.