Re: GCC 15.1 : print fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2025-6-23 16:15, Luc ROLLAND via Gcc-help 写道:
Hello
   I'm using MinGW installed on Windows 10 Pro via MSYS2.
g++ --version returns: 'g++.exe (Rev5, Built by MSYS2 project) 15.1.0'
gdb --version returns: 'GNU gdb (GDB) 16.3'
I'm learning C++23, and when I write:
#include <iostream>
#include <print>
int main() {
     std::print("Hello, World!\n");
     return 0;
}
In Code::Blocks 25.3, when I start the compilation I obtain:

Using experimental features requires linking with `-lstdc++exp`:

https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dynamic_or_shared.html#manual.intro.using.linkage.experimental


It is possible to find the library which contains the function in question with grep:

   $ grep -Flr __write_to_terminal /ucrt64/lib/
   /ucrt64/lib/libstdc++exp.a





--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux