Run MinGW in Mac?

Hi Peter
I found the answer.

For Mac to run MinGW.
Just install Xcode in terminal using
xcode-select --install

In the Mathematica program ,delete:
$CCompiler = {“Compiler” →
CCompilerDriverGenericCCompilerGenericCCompiler,
“CompilerInstallation” → “C:\MinGW”, “CompilerName” → “gcc.exe”};

The resulting code for the compiler is:

Clear[“Global`*”];
Needs[“CCompilerDriver`GenericCCompiler`”];
CompileOptions = {CompilationTarget → “C”,
RuntimeOptions → {“CatchMachineOverflow” → False,
“CatchMachineUnderflow” → False,
“CatchMachineIntegerOverflow” → False,
“CompareWithTolerance” → False, “EvaluateSymbolically” → False,
“RuntimeErrorHandler” → Evaluate, “WarningMessages” → False},
CompilationOptions → {“InlineExternalDefinitions” → True,
“InlineCompiledFunctions” → True,
“ExpressionOptimization” → True}};

Just run it.

Thats it!

Thanks for your help also Peter!
Regards
Adrian

That is exactly what I said 6 months ago …

Also, what you installed is not MinGW. The tool called MinGW, “Minimalist GNU for Windows” is used to compile programs for Windows only.