From: fredg@ariel.yorku.ca (Fredrick Gonsalves) Subject: ParcPlace's ObjectBuilder/OI HELP!!! Date: Tue, 29 Jun 1993 13:09:45 GMT
Hi all I just received my copy of ParcPlace's OI, it is great.
It installed OK, and the uib command worked OK, and I can run some of the
sample files, and I only have 8MB of RAM and 4Mb of Swap. But there is a
problem, in the Technical Overview book, there is a sample program that
is supposed to put Hello World in a window. I typed it in as stated in the
book (please see below)
#include <OI/oi.H>
int main(int argc, char **argv)
{
OI_connection *conp;
OI_app_window *wp;
OI_static_text *tp;
if (conp = OI_init(&argc,argv,"HelloWorld")){
wp = oi_create_app_window("main",1,1,"Main");
wp->set_layout(OI_layout_row);
tp = oi_create_static_text("text","Hello World! ");
tp->layout_associated_object(wp,0,0,OI_ACTIVE);
wp->set_associated_object(wp->root(),OI_DEF_LOC,OI_DEF_LOC,OI_ACTIVE);
OI_begin_interaction();
}
}
Now to compile it I type :
g++ HelloWorld.C -lOI -lX11 -o HelloWorld
but get the following errors below.
/usr/lib/libOI.a(connect.o): Undefined symbol _XShapeQueryExtension referenced from text segment
/usr/lib/libOI.a(connect.o): Undefined symbol _XShapeCombineMask referenced from text segment
/usr/lib/libOI.a(connect.o): Undefined symbol _XShapeCombineMask referenced from text segment
/usr/lib/libOI.a(glyph.o): Undefined symbol _XShapeCombineMask referenced from text segment
I am not an expert on X (I am just learning SUIT), but it does not look like a
problem with the libOI.a. ParcPlace says you need libc4.3 and gcc2.3.3, but I just
installed libc4.4 and gcc2.4.5, does that make a difference????
I know my g++ works cause I compiled a UIT (for open windows) program and it
works. I really want to start to play with this program, can anyone help.
FredG
please mail to
fredg@unicaat.sci.yorku.ca