A question about the MinGW-w64 compiler - 64bit option

417 views
Skip to first unread message

arief...@gmail.com

unread,
Jun 15, 2017, 7:51:39 AM6/15/17
to canter...@googlegroups.com

Dear Colleagues,

When I compile a test code with the MinGW-w64 compiler everything works fine with the options "cflags= -m32 -O3 -Wall"

But when I invoke "cflags= -m64 -O3 -Wall" then I'm getting the following error message:

g++ -m64 -O3 -Wall -c ../src/xtest.cpp
cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
Makefile:12: recipe for target 'objxtest' failed
mingw32-make.exe: *** [objxtest] Error 1

I tried both executables in the compiler distribution: "g++.exe" and "i686-w64-mingw32-gcc.exe".

With both executables option "-m64" leads to the aforementioned error message.

Your help with resolving this is much appreciated.

Best Regards,
Arief Dahoe

Nick Curtis

unread,
Jun 15, 2017, 10:24:51 AM6/15/17
to Cantera Users' Group
i686-w64-mingw32-gcc.exe

is the 32 bit mingw compiler if I'm not mistaken.  Make sure that your g++ is pointing to the path you expect

Also, this may help: https://stackoverflow.com/a/38589950/1667311

Nick
Reply all
Reply to author
Forward
0 new messages