Mail Archives: djgpp/1996/11/20/02:02:20
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 -