-
I'm using GCC in Windows Terminal (PowerShell), but it seems that SCons detects the current environment as CMD, which prevents compilation. PS C:\Users\me\dev\cpp\helloworld> (get-command gcc).Source
PS C:\Users\me\dev\cpp\helloworld> gcc -dumpmachine
PS C:\Users\me\dev\cpp\helloworld> gcc -v
PS C:\Users\me\dev\cpp\helloworld> scons
PS C:\Users\me\dev\cpp\helloworld> cat .\SConstruct env = Environment()
env.Replace(CXX=r"C:\Users\me\scoop\apps\gcc\current\bin\g++.exe")
env.Program("main.exe", Glob("#/src/*.cpp")) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Call the mingw tool to get it set up. It's not sufficient to just change the name of the compiler, since if the msvc environment is detected, its construction variables (settings) are configured as the default (as you've seen). I believe this should work:
|
Beta Was this translation helpful? Give feedback.
Call the mingw tool to get it set up. It's not sufficient to just change the name of the compiler, since if the msvc environment is detected, its construction variables (settings) are configured as the default (as you've seen). I believe this should work: