Login Page - Create Account

Support Board


Date/Time: Thu, 09 May 2024 15:39:11 +0000



Post From: custom studies build

[2016-10-06 17:29:43]
User35525 - Posts: 180
@ganz,
Thank you very much!! It's working with your help, and I'm back in business. :-)

Your mac .dmg link for gcc 4.8 might be best so it "just works", but I first decided to roll the dice with homebrew,
to get something slightly more up-to-date, and that worked!

In case it helps someone, here's the homebrew recipe that worked:

unofficial mingw-w64 Homebrew sub-command and Formulae.
https://github.com/cosmo0920/homebrew-mingw_w64

$ brew tap cosmo0920/mingw_w64
$ brew tap homebrew/versions
$ brew install-mingw-w64
$ brew install i686-w64-mingw32-binutils
$ brew install i686-w64-mingw32-gcc

$ which i686-w64-mingw32-gcc
/usr/local/bin/i686-w64-mingw32-gcc

Now ganz’s cross-compilation line works perfectly, even on macs, but use “i686-w64-mingw32-gcc” instead of
“i686-w64-mingw32-g++”. i.e.

$ i686-w64-mingw32-gcc -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -std=gnu++11 AdaptiveERI_MA.cpp -o /Users/ted/.wine/drive_c/SierraChart/Data/AdaptiveERI_MA.dll