-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
To reproduce the issue
when we install the latest version available on msys2
using
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
or to even check available version , it only provide 15.2.0 of gcc
its not the issue , the current versioning of gcc is.
So after installing the using MSYS2 ucrt , we add the path to the environment Variable as we should as previous and current installation process states
but after doing so, gcc and gdb and g++ version availability are shown.
But when try compile the cpp /c file using it to exe or any other format
It doesn't generate
On doing it cmd or powershell or terminal , using g++ ./file.cpp -o file
Instead of compilig it gives error could not find or locate clock_gettime64 ,
and cc1plus issue,
when exactly verbosing
g++ -v /file.cpp -o file
It's giving issue like
which is compliting a linking issue , which further checking is an dynamic linking of program
when compiling program, with static linking
g++ -static -v ./file.cpp -o file
it's generated the output , but its not ideal way to do it , as it combines all linking into one which generates larger files as not necessary.
this issue is rooted inside the current version of gcc
So to fix this please provide some downgrading option to at least 13.2.0 as it's most stable and working version currently on windows and other newer doesn't as intended.