Re: gcc for windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message ----- .
.
C:\_64\C>type try.c
#include <stdio.h>
int main() {
   printf("hello world\n");
   return 0;
}

C:\_64\C>x86_64-pc-mingw32-gcc -o try.exe try.c
x86_64-pc-mingw32-gcc: CreateProcess: No such file or directory

This issue was fixed so that access() is always properly handled.

I removed my existing installations of mingw64 (none of which worked, anyway). And I downloaded mingw-w64-bin-x86_64-mingw_20080320.tar.bz2 from http://sourceforge.net/project/showfiles.php?group_id=202880&package_id=245516&release_id=546049 .

I'm on an AMD64 box - I think that was binary I was supposed to grab. (Please let me know if I've gone off and found the wrong file.)

I unpacked that tarball to C:\_64\mingw64 and prepended C:\_64\mingw64\bin to my path. The following looks right to me:

------------------------------------
C:\_64\C>gcc -v
Using built-in specs.
Target: x86_64-pc-mingw32
Configured with: ../gcc/configure --target=x86_64-pc-mingw32 --prefix=/tmp/win64
root --with-sysroot=/tmp/win64root --host=x86_64-pc-mingw32 --disable-nls --with
-gmp=/tmp/mathwin64 --with-mpfr=/tmp/mathwin64
Thread model: win32
gcc version 4.4.0 20080320 (experimental) (GCC)
------------------------------------

Unfortunately, trying to build my 'hello' program still fails in exactly the same way as before.

------------------------------------
C:\_64\C>gcc -o try.exe try.c
gcc: CreateProcess: No such file or directory
------------------------------------

If that's not the access() problem, then it must be something else :-)

I'll try googling that error and chasing it down - though I'm anticipating it will be a wild goose chase.

Any advice on things to try will be gratefully accepted.

Thanks for the link, NightStrike - it was worth a shot. (And, I might even have some success, yet, if I persevere.)

Cheers,
Rob


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux