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

Re: New release (v0.8.7rc9)



> elaps now accepts eepic files as well as epix files. It should [tm]
> also give the correct "Title:" to the eps file.
> 
> Source packages are available bzip-ed.

Is anyone else having trouble with it?
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
~ $ 

(This was done with an example from the tutorial, included at the
bottom.) 

Jay

-- simple.c --

/* semicirc.c -- A rectangle inscribed in a semi-circle */
#include "epix.h"

double width = 0.6;

main()
{
  unitlength("1in");
  bounding_box(P(-1, 0), P(1, 1));
  picture(P(2.5, 1.25));
  offset(P(0,0.125));

  begin();

  line(P(x_min, 0), P(x_max, 0));
  line(P(0, y_min), P(0, y_max));

  ellipse_top(P(0,0), P(1,1));

  bold;
  rect(P(-width,0), P(width, sqrt(1-width*width)));

  label(P(0.5, sqrt(0.75)), P(2,4), "$y=\\sqrt{1-x^2}$");
  h_axis_labels(P(x_min,0), P(x_max,0), x_size, P(-12, -12));

  end();
}