If the Linux binary release of mingw-w64 (e.g. mingw-w32-bin_i686-linux_20101014.tar.bz2) is installed to /usr/local, then errors occur when cross-compiling as non-root, because the directory "/root" is in the include path:
:~$ i686-w64-mingw32-g++ test.cpp -o test
cc1plus: error: /usr/bin/../../root/usr/local/include: Permission denied
cc1plus: error: /usr/bin/../../root/mingw/include: Permission denied
This situation could be improved, it would be great if paths which are required at build time for gcc would not interfere with paths on the target system. See also this forum thread:
Log in to post a comment.