kimh@otc.otca.oz.au (Kim Horn) (05/23/91)
We have installed IV3.0 and fixed up to patch 8.
I still have a problem linking in the graphics library
stuff for an old application. To check It was not my code
I tried the old 2.6 example "graphics". I have seen
articles reporting the same problem but the reported fix
doesn't help.
The following is the new Imakefile:
---------------------------------------------------
#ifdef InObjectCodeDir
SRCS = *.c
OBJS = graphics.o
Use_2_6()
Use_libInterViews()
Use_libgraphic()
ComplexProgramTarget(newgraphics)
MakeObjectFromSrc(graphics)
#else
MakeInObjectCodeDir()
#endif /* if compiling in subdirectory */
---------------------------------------------------------
The output from make is :
CC +p -O -Dcplusplus_2_1 -Div2_6_compatible -I..
-I/usr/local/InterViews/include/InterViews/2.6
-I/usr/local/InterViews/include/IV-look/2.6
-I/usr/l ocal/InterViews/include -c ../graphics.c
CC +p ../graphics.c:
"/usr/local/include/CC_2_1/errno.h", line 148: warning: " volatile" not
implemented (ignored)
cc -c -O -Dcplusplus_2_1 -Div2_6_compatible -I..
-I/usr/local/InterViews/inclu de/InterViews/2.6
-I/usr/local/InterViews/include/IV-look/2.6
-I/usr/local/InterViews/include graphics.c
linking a.out
CC +p -O -o a.out graphics.o -L/usr/local/InterViews/lib/SUN4
-lIV-look -lgraphic -lInterViews -lIV-X11 -lDispatch -lOS
-lXext -lX11 -lm
cc -L/usr/local/lib -o a.out -O graphics.o
-L/usr/local/InterViews/lib/SUN4
-lIV-look -lgraphic -lInterViews -lIV-X11 -lDispatch -lOS -lXext
-lX11 -lm -lC_2_1
ld: Undefined symbol
Painter::Line(Canvas*,int,int,int,int)
Painter::SetColors(Color*,Color*)
Transformer::Scale(float,float)
Transformer::InvTransform(float,float,float&,float&)
Painter::GetTransformer()
Perspective::Update()
Font::Index(const char*,int,int,unsigned int)
Font::Height()
Painter::SetBrush(Brush*)
Painter::FillBg(unsigned int)
Interactor::Deactivate()
Perspective::~Perspective()
Resource::~Resource()
GraphicBlock::Scroll(ivPerspective&)
GraphicBlock::Zoom(ivPerspective&)
etc etc.......
---------------------------------------------------------
Thanks for any help
Kim
Kim Horn ACSnet: kimh@otc.otca.oz.au
|||| OTC || R&D UUCP: {uunet,mcvax}!otc.otca.oz.au!kimh
GPO Box 7000, Sydney FAX: +61 2 287 3299
2001, Australia PHONE: +61 2 287 3187