Arrows in UniIdraw
David Nowak <[email protected]> Mon, 15 Jul 2002 15:53:57 +0200 (CEST)
| Newsgroups | gmane.comp.lib.ivtools.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I started to develop my own graphic editor with Unidraw. My small program
compiled and ran well. But I needed arrows. Unfortunately Unidraw cannot deal
with arrow, can it? Thus I used UniIdraw in order to have arrows: I added a few
#include:
#include <UniIdraw/idarrows.h>
#include <UniIdraw/idarrow.h>
and the lines
ArrowLine *
line = new ArrowLine (0, 0, unit, unit, false, false, 1., stdgraphic);
ArrowLineComp *
arrowLineComp = new ArrowLineComp (line);
Include (new
GraphicCompTool (new
ControlInfo (arrowLineComp, KLBL_LINE, CODE_LINE),
arrowLineComp), tools);
in my source code.
Now, it compiles well but it terminates on a segmentation fault when it calls
the constructor for GraphicCompTool!
I compile, with Gun C++ 2.95.2 in Linux RedHat 6.2, this way:
c++ -Div2_6_compatible -g -c -I $PREFIX/include/IV-2_6 \
-I $PREFIX/include diaged.c
c++ -Div2_6_compatible -g -c -I $PREFIX/include/IV-2_6 \
-I $PREFIX/include main.c
c++ -Div2_6_compatible -g -o diagram -L $PREFIX/lib -lUniIdraw \
-lUnidraw -lIV -L /usr/X11R6/lib -lXext diaged.o main.o
Can anyone help me?
Manny thanks,
David.
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf