This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problem compiling with gpc and "Uses Crt" statement in crtc.c


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]