Dear Dr. Liu Hao,
hello,
 
thank you for your e-mail.
 
i am sorry i did not understand you. the problem associated with setlocale() became clear for me - such issues/problems depends on the operating system, and on the hardware architecture (PC, Mac, Dec, Sun, etc.).
 
my previous questions have been related to Qt5, and Msys2-Mingw64. as far as i understand the problem(s) that i have encountered are concentrated within the present putches (coding errors) of Msys2-Mingw64.
 
do i understand you correctly ?
 
Thank you.
 
 
 
Dear Dr. David Grayson, and All,
hello,
 
thank you for your answer. i deleted a static part of Qt5 using the command,
pacman -R mingw-w64-x86_64-qt5-static
 
then re-installed qt5 using the command
pacman -S mingw-w64-x86_64-qt5
 
now, i try to compile an example1b.cpp demonstrated below, using the command,
g++ -o example1b.exe example1b.cpp -I/C:/msys64/mingw64/include/QtCore -L/C:/msys64/mingw64/bin -lQt5Core.dll -fPIC

and, also,
 
g++ -o example1b.exe example1b.cpp -I/C:/msys64/mingw64/include/QtCore -lQt5Core -fPIC
 
and, also,
 
g++ -o example1b.exe example1b.cpp -I/C:/msys64/mingw64/include/QtCore -L/C:/msys64/mingw64/bin -lQt5Core -fPIC
 
the example1b is compiled (in all three cases) without error messages.
however, when i run it (in the console) using the command "./example1b.exe" nothing is happened, that is, for example, "Hello, World !" line does not appear in the console.
 
i would appreciate someone's help in the Forum to solve this issues related to Qt5, and Msys2-Mingw64.
 
Thank you.
 
---------------------------
example1b.cpp
---------------------------
#include<stdio.h>
#include <QtCore>
#include <iostream>
 
int main() {
 
printf("Hello, World ! \n");
 
std::cout << "Qt version: ... " << "\n" << std::endl;
 
std::cout << "Qt version: " << qVersion() << std::endl;
 
}
 
 
27.07.2020, 09:16, "Liu Hao" <lh_mo...@126.com>:

在 2020/7/27 4:26, Il'dar Al'Miev 写道:

 Dear Dr. David Grayson, and All,
 hello,
 ...> the example1b is compiled (in all three cases) without error messages.
 however, when i run it (in the console) using the command "./example1b.exe" nothing is happened, that is, for example,
 "Hello, World !" line does not appear in the console.
  
 i would appreciate someone's help in the Forum to solve this issues related to Qt5, and Msys2-Mingw64.
  
 


See MSDN [1] for valid locale names for `setlocale()` [2]. I am pretty sure that `Rus` is not a valid one.

[1] https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/a9eac961-e77d-41a6-90a5-ce1a8b0cdb9c
[2] https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale?view=vs-2019

 

--
Best regards,
LH_Mouse
 
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to