[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New release (v0.8.7rc9)



On Mon, 23 Sep 2002, Jay Belanger wrote:

> No matter what input file I use, I get the same error:
>
> ~ $ epix simple.c
> In file included from simple.c:2:
> /usr/include/epix.h:1045: declaration of `int abs(int)' throws different
>    exceptions
> /usr/include/stdlib.h:740: than previous declaration `int abs(int) throw ()'
> epix: ERROR: Compilation failed
> ~ $
>
Jay,

Perhaps it's time for me to remove "abs" from functions.cc; Andrew Sterian
has noted that Python provides a superior version, and I believe C++ does,
as well. My guess is that the new compiler (you're using gcc 3.1, right?)
doesn't like my naive version... :)

If it's not too much trouble, try removing the definition of int abs(int)
from functions.cc and the declaration from functions.h, then recompile and
see if the problem persists. In any case, I'll make the same changes in
the source.

--Andy

Andrew D. Hwang			ahwang at mathcs dot holycross dot edu
Department of Math and CS	http://mathcs.holycross.edu/~ahwang
College of the Holy Cross	(508) 793-2458 (Office: 320 Swords)
Worcester, MA, 01610-2395	(508) 793-3530 (fax)