It is some time I am using these mingw-w32-bin_i686-cygwin packages on
Cygwin, but recently it seems that there are some problems.
The last useful package wich works for me is:
mingw-w32-bin_i686-cygwin-1.7.5-1_20100617.tar.bz2. All packages
released after (...20100704, 20100708) do not work: I can build
executables but they do not produce any output. For example:
$ tar -xvof mingw-w32-bin_i686-cygwin-1.7.5-1_20100708.tar.bz2 -C
/usr/local/mingw-w64
$ cd /usr/local/bin
$ ln -sf /usr/local/mingw-w64/bin/i686-w64-mingw32-g++.exe mingw32-g++
$ export PATH="/usr/local/mingw-w64/bin:$PATH"
$ cat /tmp/hello.cpp
/* hello.c */
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
return 0;
}
$ mingw32-g++ hello.cpp
$ ./a.exe &
[1] 3504
$
[1]+ Exit 127 ./a.exe
If I remember correctly, 'Exit 127' means 'missing DLL'. What? Why then
mingw-w32-bin_i686-cygwin-1.7.5-1_20100615.tar.bz2
mingw-w32-bin_i686-cygwin-1.7.5-1_20100617.tar.bz2
work just fine?
I have also tried this:
$ cygcheck ./a.exe
C:\cygwin-2\tmp\a.exe
C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\ntdll.dll
C:\WINDOWS\system32\msvcrt.dll
C:\cygwin-2\usr\local\mingw-w64\bin\libstdc++-6.dll
C:\cygwin-2\usr\local\mingw-w64\bin\libgcc_s_sjlj-1.dll
C:\WINDOWS\system32\USER32.dll
C:\WINDOWS\system32\GDI32.dll
$ ldd ./a.exe
ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c910000)
kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll
(0x7c800000)
msvcrt.dll => /cygdrive/c/WINDOWS/system32/msvcrt.dll (0x77be0000)
libstdc++-6.dll => /usr/local/mingw-w64/bin/libstdc++-6.dll
(0x6fc40000)
libgcc_s_sjlj-1.dll =>
/usr/local/mingw-w64/bin/libgcc_s_sjlj-1.dll (0x6cec0000)
USER32.dll => /cygdrive/c/WINDOWS/system32/USER32.dll (0x7e390000)
GDI32.dll => /cygdrive/c/WINDOWS/system32/GDI32.dll (0x77e40000)
which, apparently, do not flag any missed DLL
Any idea?
Thanks,
Angelo.
(NightStrike, JonY, sorry if I have added you... I am not subscribed to
mingw-w64-public list... :()
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public