Trying to install MinGW so I can compile C++ programs in VS Code. Followed the instructions at https://code.visualstudio.com/docs/cpp/config-mingw to install everything.
To check if everything was installed correctly I used the commands:
gcc --version
g++ --version
gdb --version
GCC and g++ seem to be working fine, but when I tried to run gdb --version
I get the following error:
C:Usersvaari>gdb --version
Python path configuration:
PYTHONHOME = 'C:UsersvaariAppDataLocalProgramsPythonPython312'
PYTHONPATH = 'C:UsersvaariAppDataLocalProgramsPythonPython312'
program name = 'C:msys64ucrt64binpython.exe'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = 'C:UsersvaariAppDataLocalProgramsPythonPython312libpython3.11'
sys._base_executable = 'C:\msys64\ucrt64\bin\python.exe'
sys.base_prefix = 'C:\Users\vaari\AppData\Local\Programs\Python\Python312'
sys.base_exec_prefix = 'C:\Users\vaari\AppData\Local\Programs\Python\Python312'
sys.platlibdir = 'lib'
sys.executable = 'C:\msys64\ucrt64\bin\python.exe'
sys.prefix = 'C:\Users\vaari\AppData\Local\Programs\Python\Python312'
sys.exec_prefix = 'C:\Users\vaari\AppData\Local\Programs\Python\Python312'
sys.path = [
'C:\Users\vaari\AppData\Local\Programs\Python\Python312',
'C:\Users\vaari\AppData\Local\Programs\Python\Python312\lib\python311.zip',
'C:\Users\vaari\AppData\Local\Programs\Python\Python312\lib\python3.11',
'C:\Users\vaari\AppData\Local\Programs\Python\Python312\lib\python3.11\lib-dynload',
]
Error occurred computing Python errormessage.
Python not initialized
Have not been able to figure out how to fix it. Tried reinstalling MinGW but it didn’t change anything. Any help would be appreciated.
vaaritu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.