🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41883

gcc error -> undefined reference to '_XmStrings' when compile?

#41883
From: robert walker
Date: Sat, 10 Feb 1996 00:00
37 lines
1166 bytes
Hello any developers,

I have the InfoMagic version of Motif, and I'm compiling with
gcc 2.7.0.  
(this is on linux, which seems to be behaving fine running mwm and 
applications)

When I compile w/

gcc xmdemo.c -I/usr/X11R6/include -lXm -lXt -lXmu -lX11

I get these bewildering errors

/tmp/cca004061.o(.text+0x2f):undefined reference to '_XmStrings'
/tmp/cca004061.o(.text+0x2f):undefined reference to 
'XmStringCreate'
..
..
Xm is the motif lib and so is Xmu

I get these errors for all Motif functions I try to call from the source 
file

But the Xt and X libs are found

my #includes look like this

#include <Xm/Xm.h>
..
..


Please help if you know a solution

Thanks

walker@argo.net
Technical Details
Message-ID: <DMKFq0.8oq@argo.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e19c28e31c94b77b,start
X-Google-Attributes: gid11318c,public
From: walker@mail.argo.net (robert walker)
Subject: gcc error -> undefined reference to '_XmStrings' when compile?
Date: 1996/02/10
Message-ID: <DMKFq0.8oq@argo.net>
X-Deja-AN: 138726821
sender: news@argo.net
organization: GTE
mime-version: 1.0
reply-to: walker@argo.net
newsgroups: gnu.gcc.help