delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/07/15:29:25

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <658bce1a0706071213q7e1209abp3cdbe6689fcac90c AT mail DOT gmail DOT com>
Subject: RE: Problem compiling with gpc and "Uses Crt" statement in crtc.c
Date: Thu, 7 Jun 2007 20:27:21 +0100
Message-ID: <002a01c7a939$de7c8140$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <658bce1a0706071213q7e1209abp3cdbe6689fcac90c@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On 07 June 2007 20:13, Bruce Mahfood wrote:

> I am using gpc to compile code which contains the statement "Uses
> Crt".  I get over 600 error lines.  I am attaching the output of
> cygcheck -s -v -r, along with the output that I am getting from my
> compilation, as well as a test file that I have created which gives me
> the same errors.
> 
> The command line that I am using is:
> 
> gpc --automake --unit-path=/usr/lib/gcc/i686-pc-cygwin/3.4.4/units/ -g
> test.pas 
> 
> I have also used:
> 
> C:\cygwin\lib\gcc\i686-pc-cygwin\3.4.4\units
> 
> in the unit-path.  Both paths gave the same results.

  I don't speak pascal, but I can tell you that that is almost certainly the
wrong thing to do.  Anything under /usr/lib/gcc is private and internal and
belongs to gcc (and its subcompiler gpc) only.  The compiler should pull it in
automatically when it needs to and not when it doesn't and it should
automatically know what and where it is and never need to be told.
 
> Basically the problem seems to be an issue with compiling crtc.c.

  I think you probably don't want to be recompiling the internal runtime
support stuff anyway.

> Thanks for your help...

  I'm afraid I can't help much, as I don't speak pascal.  Your example
compiles ok with the "Uses" statement removed.  A five-second google tells me
that "Uses Crt" is a Borland extension, so maybe all you need do is omit it?
(I think this is maybe a bit like the old getch() function that everyone used
in Borland C and MSVC to wait for a keypress but that is not part of the C
language and so does not exist in many other compilers/runtime libraries).


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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