You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a C++ source code file that includes the <print> header file, for example:
#include<print>automain() -> int
{
std::print( "Test\n" );
return0;
}
In the compilation options, add the option -fexec-charset=utf-8, and then compile the source code file created in the previous step.
Expected behavior
The source code file has been successfully compiled and linked.
Actual behavior
GCC will return the following link error messages:
C:/Software/MSYS2/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\MaxLH\AppData\Local\Temp\cchGzAWv.o:main.cpp:(.text$_ZSt14vprint_unicodeP6_iobufSt17basic_string_viewIcSt11char_traitsIcEESt17basic_format_argsISt20basic_format_contextINSt8__format10_Sink_iterIcEEcEE[_ZSt14vprint_unicodeP6_iobufSt17basic_string_viewIcSt11char_traitsIcEESt17basic_format_argsISt20basic_format_contextINSt8__format10_Sink_iterIcEEcEE]+0x24d): undefined reference to `std::__write_to_terminal(void*, std::span<char, 18446744073709551615ull>)'
collect2.exe: error: ld returned 1 exit status
Description / Steps to reproduce the issue
<print>
header file, for example:-fexec-charset=utf-8
, and then compile the source code file created in the previous step.Expected behavior
The source code file has been successfully compiled and linked.
Actual behavior
GCC will return the following link error messages:
Verification
Windows Version
MSYS_NT-10.0-27768
MINGW environments affected
Are you willing to submit a PR?
No.
The text was updated successfully, but these errors were encountered: