> C:\Users\gbarbieri>gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=c:/program files (x86)/codeblocks/mingw/bin/../libexec/gcc/m
> ingw32/4.7.1/lto-wrapper.exe
> Target: mingw32
> Configured with: ../../src/gcc-4.7.1/configure --build=mingw32 --enable-language
> s=c,c++,ada,fortran,objc,obj-c++ --enable-threads=win32 --enable-libgomp --enabl
> e-lto --enable-fully-dynamic-string --enable-libstdcxx-debug --enable-version-sp
> ecific-runtime-libs --with-gnu-ld --disable-nls --disable-win32-registry --disab
> le-symvers --disable-build-poststage1-with-cxx --disable-werror --prefix=/mingw3
> 2tdm --with-local-prefix=/mingw32tdm --enable-cxx-flags='-fno-function-sections
> -fno-data-sections' --with-pkgversion=tdm-1 --enable-sjlj-exceptions --with-bugu
> rl=
http://tdm-gcc.tdragon.net/bugs> Thread model: win32
> gcc version 4.7.1 (tdm-1)
>
> You were right, it is using a x86 gcc (coming from codeblocks)
>
> If I search for gcc.exe, I get the right one here:
>
> C:\Program Files\mingw-builds\x64-4.8.1-win32-sjlj-rev5\mingw64\bin
>
> and the codeblocks one here:
>
> C:\Program Files (x86)\CodeBlocks\MinGW\bin
>
> This is my PATH:
>
> %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
> Files\Microsoft Windows Performance Toolkit\;C:\Program Files
> (x86)\GNU\GnuPG\pub;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program
> Files\NetBeans 8.0\extide\ant\bin;C:\Program
> Files\Java\jdk1.7.0_51\jre\bin\server;C:\Program Files\Internet Explorer
>
>
> How can I make them co-exist together? Is exchanging the codeblocks path with
> the x64 mingw the only way?