HOW to ACCESS GCC installed on windows in wsl

abhi abhi 0 Reputation points
2024-01-06T03:25:18.33+00:00

I installed gcc, gdb, g++ through msys2 on windows and recently I installed wsl with openSUSE. please tell me how to access msys gcc on opensuse or do i have install a separate gcc on openSUSE wsl.

Is it ok to do so or will cause any problem or will cause the system to crash or any other problem.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-08T07:04:32.86+00:00

    Hi abhi abhi,

    Thank you for posting on the Q&A forum.

    It's supported to run Windows executables from WSL and the Windows file systems are mounted under /mnt. Sorry I do not use msys2 but you can see if the gcc.exe can run normally from bash.

    https://learn.microsoft.com/en-us/windows/wsl/filesystems

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.