Undefind References

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Undefind References

Submitted by Anonymous on Tue, 06/25/2002 - 16:02. Developers
I`m running RH 7.2 Linux with openmotif-devel-2.1.30-5_ICS
openmotif-2.1.30-5_IC installed. I uninstalled 2.1.30 and
installed OpenMotif 2.2.2 and I get undefied references when
I link my software. Some of the unsatisfieds are
XEditResPutString8, XEditResPut8, XeditResPut16, XEditResPutWidgetInfo (and more). Do I need a new version of X? Where do I get the missing references? I have tried linking every library that I could find in my X11 library directory and
still get the unsatisfieds.

Anonymous

All the libraries are in /usr/X11R6/lib.
I also had to include the path to the includes...

Here is an example Makefile.

SOURCE = /net/.....
OBJECTDIR = /net/...

CFLAGS = -g
LDFLAGS = -g
INCDIR = /usr/X11R6/include
LIBDIR = /usr/X11R6/lib
LIBS = -lXm -lX11 -lXt

.SUFFIXES .o .cc

OBJECTS = $(OBJECTDIR)/Test1.o
$(OBJECTDIR)/Test2.o

TEST $(OBJECTS)
@ echo -- Building Test Executable
@ g++ $(LDFLAGS) -L $(LIBDIR) -o $(OBJECTS) $(LIBS)
@ echo -- Build Complete!
@ echo -- The new executable is called Test

$(OBJECTDIR)/Test1.o $(SOURCE)/Test1.c
@ echo -- Building Test1.o
@ g++ $(CFLAGS) -I $(INCDIR) -c $(SOURCE)/Test1.c -o $(OBJECTDIR)/Test1.o

~~~~~~~~~~~~~~~~~~~
Let me know if you have any other problems. It took me a while to figure this one out. I would also suggest making the Application clean to be sure that everything is set up correctly for the new Motif environment.

C. Lamb