Mail Archives: cygwin/2005/09/14/19:27:15
On Thu, Sep 15, 2005 at 01:19:37AM +0200, Angelo Graziosi wrote:
>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).
You're misinterpreting something here. Cygwin never just silently
truncated arguments to 32K.
>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 ???
I tried this with mingw and Microsoft's compiler without any problem. If
this program isn't too big (and I don't see why it should be) please post
it here so that I can try it.
cgf
--
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 -