On Sat, Aug 12, 2000 at 03:06:06AM -0400, Joe Chen wrote:
> I just installed 7.1 and tried compiling a short C++ code by using xemacs. 
> The warning output texts within xemacs are somehow messed up with encoding
> characteres:
> 
> make
> gcc -c -Wall -g -I/home/jychen/work/numerical invest.c++
> [0minvest.c++: In function `double present_worth(records_t *,
> double)':
> [0minvest.c++:182: warning: initialization to
> `int' from `double'
> [0minvest.c++: In function `double
> present_worth_i(double)':
> [0minvest.c++:214: warning: initialization to
> `int' from `double'
> g++ -o invest invest.o -L/home/jychen/work/numerical -lnumeric -lm
> 
> 
> The normal texts in a konsole look as:
> 
> gcc -c -Wall -g -I/home/jychen/work/numerical invest.c++
> invest.c++: In function `double present_worth(records_t *, double)':
> invest.c++:182: warning: initialization to `int' from `double'
> invest.c++: In function `double present_worth_i(double)':
> invest.c++:214: warning: initialization to `int' from `double'
> g++ -o invest invest.o -L/home/jychen/work/numerical -lnumeric -lm
> 
> What goes wrong here?

I have seen this in Emacs, but have never used Xemacs. So this is a guess.

What is going on here is that gcc is emitting the control
characters. Konsole is handling them correctly, but the Emacs "terminal"
is not. You should turn off the fancy output stuff (bold, colors, etc) in
gcc when you run it under emacs.



-- 

                -- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley

PGP signature

Reply via email to