delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/14/00:44:56

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: EGCS include files
14 Nov 1998 00:44:56 -0800 :
Message-ID: <Pine.SUN.3.93.981113093352.21163C-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <19981113000823 DOT 13983 DOT rocketmail AT send205 DOT yahoomail DOT com>
Mime-Version: 1.0
To: Mikhail Tchernychev <mikhail_tchernychev AT yahoo DOT com>
Cc: cygwin win-32 <gnu-win32 AT cygnus DOT com>

On Thu, 12 Nov 1998, Mikhail Tchernychev wrote:

> Hi, 
> 
> I found that is not possible to compile
> simple program (t.cpp) with 
> 
> gcc -o t.exe t.cpp
> 
> here is the text:
> 
> #include <stdio.h>
> #include <stdlib.h>
> 
> void main() {
> 
> }

Yikes! Please read up on the return type of main. Any decent book on C++
has a discussion of what it should be.

> 
> It comes with errors:
> 
> c:\\cygnus\\cygwin-b20\\H-i586-cygwin32\\i586-cygwin32\\include\\stdio.h:143:
> ty
> pe specifier omitted for parameter
> c:\\cygnus\\cygwin-b20\\H-i586-cygwin32\\i586-cygwin32\\include\\stdio.h:144:
> ty
> pe specifier omitted for parameter
> ....

I've never seen this. Please send me the following:
  
  $ env > bug.txt 2>&1
  $ mount >> bug.txt 2>&1
  $ gcc -H -save-temps -c t.cpp >> bug.txt 2>&1

The -save-temps will create a file called t.ii which has the preprocessed
output from t.cpp.

Please email me the bug.txt and t.ii files.

Regards,
Mumit


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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