S.u.S.E. Support Data Base

Title: Undefined symbols when linking Motif programs

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- Contents ---- Deutsch ---

Undefined symbols when linking Motif programs

You get errors when linking Motif programs. The linker complains concerning undefined symbols (e.g. Ice..., Smc..., XShape..., Xpm... ) although the same Makefiles are used that worked on an older Linux system.

Libraries that are needed to link Motif programs are not found. Formerly they where searched in /usr/X11R6/lib

As remedy there are two possibilities:

Explicit specifications for all required libraries.

        gcc -o airport -L/usr/X11R6/lib main.o dragsource.o dropsite.o \
            -lXm -lXpm -lXt -lSM -lICE -lXext -lX11 -lm

Use the linker option -rpath-link, so independent libraries are independently linked to /usr/X11R6/lib.

        gcc -o airport -L/usr/X11R6/lib main.o dragsource.o dropsite.o \
            -lXm -Wl,-rpath-link,/usr/X11R6/lib

---

Keywords: MOTIF, UNDEFINED SYMBOLS, LINK

---

Feedback welcome: Send Mail to fehr@suse.de (Please give the following subject: SDB-fehr_motif_2)

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- Contents ---- Deutsch ---

SDB-fehr_motif_2, Copyright S.u.S.E. GmbH, Fürth, Germany - Version: 03.03.97
Impressum - Last generated: 17. Sep 1997 12:56:26 by mb with sdb_gen 0.70.0