delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/20/17:49:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040820173645.03387008@pop.prospeed.net>
X-Sender:
Date: Fri, 20 Aug 2004 17:49:07 -0400
To: Jacek Trzmiel <sc0rp AT hot DOT pl>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: Compilation errors not shown properly in Cygwin
In-Reply-To: <41266B94.EE092C5F@hot.pl>
References: <206C1A53A7F2834DBB7F4BDEBA2DC9E84D664E AT mshyd3 DOT hyd DOT deshaw DOT com> <41266B94 DOT EE092C5F AT hot DOT pl>
Mime-Version: 1.0

At 05:22 PM 8/20/2004, you wrote:

>"Rajagopalan, Karthik" wrote:
>[...]
>> I am
>> trying to compile a C program through "Makefile" from Cygwin. This C
>> program has syntax errors which are supposed to be shown by Cygwin when
>> running  C compiler. It just indicates the following lines and stops :
>> 
>> make: *** [/cygdrive/h/test.obj] Error 1
>> 
>> If I run the C program without using "Makefile" from Cygwin, errors are
>> properly indicated.
>[...]

<snip>


>Steps to reproduce:
>- Unpack attached tgz
>- Make sure that directory with 'msdev.exe' from Visual C++ 6.0 is in
>  your PATH (usually
>  c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\)
>- start bash in normal windows console (NOT rxvt)
>- cd to MakeTest directory
>- type 'make all'
>
>Output will NOT contain messages from msdev:
>> $ make all
>> msdev MakeTest.dsp /MAKE "MakeTest - Win32 Debug"
>> make: *** [all] Error 1
>
>- type 'make betterall'
>
>Output WILL contain messages from msdev:
>> $ make betterall
>> bash -c '{ msdev MakeTest.dsp /MAKE "MakeTest - Win32 Debug" | cat; [ "${PIPESTATUS[0]}" = 0 ]; }'
>> --------------------Configuration: MakeTest - Win32 Debug--------------------
>> Compiling...
>> MakeTest.cpp
>> d:\Sources\MakeTest\MakeTest.cpp(6) : error C2059: syntax error : '}'
>> d:\Sources\MakeTest\MakeTest.cpp(6) : warning C4508: 'main' : function should return a value; 'void' return type assumed
>> Error executing cl.exe.
>> 
>> MakeTest.exe - 1 error(s), 1 warning(s)
>
>
>I've encountered this problem long long time ago, so it's not some
>recent regression.
>
>Both invocations of msdev from Makefile display messages correctly under
>rxvt console.


Sounds like a tty thing to me.  Try adding to your CYGWIN environment 
variable 'notty' and starting a new cygwin.bat.


<snip>


>BTW: Shouldn't Cygwin and/or bash give preference to *.com over *.exe as
>windows' cmd does? Currently if you have t.exe and t.com in some
>directory in your path and you'll type 't' in shell then cygwin will
>start t.exe, and windows' cmd will start t.com.


We have our own anachronisms that we'd like to jettison.  Running 't.exe' 
when 't' is typed in is one of them.  I can't see adding to the list.  And 
changing now comes with a host of problems.  If we're ready to deal with the 
onslaught of problems such a change would make, it makes sense to get rid
of all anachronisms in this area rather than add one.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019