epix-users
[Top][All Lists]
Advanced

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

[ePiX-users] compilation error : elaps: WARNING: "/usr/local/bin/epix -o


From: Math Plot
Subject: [ePiX-users] compilation error : elaps: WARNING: "/usr/local/bin/epix -o 4_fig.eepic 4_fig.cpp" failed
Date: Mon, 18 May 2009 12:36:35 +0200



when we compiled the following file through the command : " elaps  -pdf 4_fig.cpp " :


#include "epix.h"
using namespace ePiX;

int main() {

    unitlength("1in");
    picture(2.0, 2.0);                   // set printed size, 2.5 x 1.25in
    bounding_box(P(0, 0), P(2, 2));      // corners; depict [-1,1] x [0,1]
    use_pstricks();
    begin();   // ----- figure body starts here -----
   
   
    bold();                               // paths only, not fonts
    pen("0.03in");
    //fill_color("blue");
    psset("fillcolor=blue, linecolor=black");
    rect(P(0,0), P(3, 2));  // rectangle given by corners
    //fill_color("red");
    psset("fillcolor=red, linecolor=black");
    //gray(0.4);
    //fill();
    rect(P(0,0),P(1.4,2));
   
    pen("0.04in");
    dot(P(0.7,1.0));
    dot(P(2.0,1.0));
   
    pen("0.08in");
    label(P(0.6,1.0), "$\\bf 1$");
    label(P(2.1,1.0), "$\\bf 2$");
   
    //plain();
    pen("0.08in");
    dashed();
    dot_sep(0.08);
    line(P(0.7,1.0),P(2.0,1.0));
   
    bold();
    pen("0.2in");
    label(P(1.4,2.12), "$\\bf \\textbf{M}$");
    label(P(1.4,-0.12), "$\\bf \\textbf{N}$");
   
    label(P(2.1/2.0,1.12), "$\\bf h_1$");
    label(P(3.4/2.0,1.12), "$\\bf h_2$");
    //rgb(0, 0.0, 0.7);
   
    //gray(0.4);
    //rect(P(0,0),P(1,1));
   
    //rgb(1, 0.7, 0.7); // light red
    //line(P(-1,0), P(1,0));
    //line(P(0,-1),P(0,1));
    // shift label right 2pt, up 4pt, align on reference point (default)
    //label(label_here, P(2,4), "$y=\\sqrt{1-x^2}$");
    //rgb(0.4, 0, 0);   // dark red
    //bold();
    //fill();
    //arc(P(0,0),1.0,0,3.14);
    /*******
    label(P(-0.5,-0.5), "$\\Omega_1$");
    label(P(0.5,-0.5), "$\\Omega_2$");
    label(P(0.5,0.5), "$\\Omega_3$");
    label(P(-0.5,0.5), "$\\Omega_1$");
    *********/
    /*********
    fill(false);
    rgb(0, 0.0, 1.0);
    rect(P(-1,-1), P(1, 1));
    **********/
    end();
}

The content of the log file is:

 epix: Processing 4_fig.cpp:
epix: /usr/bin/g++ epix-5515/4_fig-tmp.cc -w -o epix-5515/4_fig -I/usr/local/include -L/usr/local/lib/epix -lm -lepix
epix-5515/4_fig-tmp.cc: In function $-1òøint main()òù:
epix-5515/4_fig-tmp.cc:9: error: $-1òøuse_pstricksòù was not declared in this scope
epix-5515/4_fig-tmp.cc:16: error: $-1òøpssetòù was not declared in this scope
epix: WARNING: Compilation of 4_fig.cpp failed
---
elaps: WARNING: "/usr/local/bin/epix -o 4_fig.eepic 4_fig.cpp" failed

Please help:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]