Mail Archives: cygwin/2005/09/14/19:19:49
With the September snapshots, the following code:
------------------------------------------------
// hello_tst.cpp
#include <iostream>
using namespace std;
int main()
{
	cout << "Hello, world!" << endl;
	
	return 0;
}
-------------------------------------------------
works when it is built with g++ 3.4.4-1:
$ g++ hello_tst.cpp
$ ./a
Hello, world!
but if it is built with another compiler, Borlandc 5.5, it does not work:
$ bcc32 hello_tst.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
hello_tst.cpp:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
$ ./hello_tst.exe
bash: ./hello_tst.exe: Argument list too long
The test code works in any case (g++, bcc5.5) with Cygwin 1.5.18-1 and
with the snapshots before that which truncated the command line arguments
to 32k (these snaps now are not more present in the list of snaps, only
those >= 20050906 are present).
This mean that with current snapshots or with the next release of Cygwin
one cannot run from Cygwin applications that were built with other
NON-Cygwin compilers ???
Best regards,
    angelo.
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
- Raw text -