www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/20/02:02:20

Date: Wed, 20 Nov 1996 08:50:03 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Martin Gumucio <martin DOT gumucio AT mcu DOT uu DOT se>
Cc: djgpp AT delorie DOT com
Subject: Re: list of djgpp compiler errors wanted!
In-Reply-To: <32905cab.10273409@news.uu.se>
Message-Id: <Pine.SUN.3.91.961120084712.20041H-100000@is>
Mime-Version: 1.0

On Tue, 19 Nov 1996, Martin Gumucio wrote:

> gxx SAMPLE.CPP  -o SAMPLE.EXE -lm
> 
> and this came out of the compiler
> utypomv.cpp: In function `int main()':
> utypomv.cpp:10: warning: assignment to `int' from `double'
> 
> it simply refuses to make me use type casting of any form.

AFAIK, this is forbidden in C++ programs, and the compiler seems to say 
that I'm right.  Compile your program as a C program, and you won't see 
such messages, since C allows such conversions.  Rename your source to 
sample.c and call gcc like so:

	gcc sample.c -o sample.exe -lm

> Where can i find a list of all djgpp compiler errorsmessages?

There is no such list.  But in this case (as in most other cases) the 
message is *very* clear, IMHO.

- Raw text -


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