🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #57473

Re: Compiling Moo-Tiff, Please Help!

#57473
From: Lawson Hanson
Date: Sun, 29 Sep 1996 00:00
50 lines
2019 bytes
kurdian@yallara.cs.rmit.EDU.AU (Chris Kurdian) writes:

>Hello all, 

>I need some suggestions/help with the following Please:
>(Using Red Hat April InfoMagic Version Kernel version 1.2.13)
>(I am using the ELF5 version of Moo-Tiff 2.0 from the InfoMagic August 1995 addition)
>(See Below for the program source file)

>I have typed in the following:

>gcc hello.c -o hello  -I/usr/X11R6/include/ -L/usr/X11R6/lib -lXt 

>/tmp/cca016221.o: In function `main':
>/tmp/cca016221.o(.text+0x49): undefined reference to `xmLabelWidgetClass'

>So what I did was type in the following:

> gcc hello.c -o hello  -I/usr/X11R6/include/ -L/usr/X11R6/lib -lXt -lX11 -lXm

>And I got

>/usr/X11R6/lib/libXm.so: undefined reference to `XpmFreeAttributes'
>/usr/X11R6/lib/libXm.so: undefined reference to `XpmCreateImageFromXpmImage'
>/usr/X11R6/lib/libXm.so: undefined reference to `XShapeCombineRectangles'
>/usr/X11R6/lib/libXm.so: undefined reference to `XShapeCombineMask'
>/usr/X11R6/lib/libXm.so: undefined reference to `XShapeQueryExtension'
>/usr/X11R6/lib/libXm.so: undefined reference to `XpmFreeXpmImage'
>/usr/X11R6/lib/libXm.so: undefined reference to `XpmReadFileToXpmImage'

>Any addtional help would be appreciated.

[-snip-]

>Cheers

>--Chris :(

Try changing the order of the library options with Motif, then X Toolkit,
and then X11, like this:

gcc hello.c -o hello -I... -L... -lXm -lXt -lX11
                                 ===============

You may find that helps.

Best regards,

Lawson Hanson
Technical Details
Message-ID: <lawsonh.844033604@pelican>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <52fggu$rdh@goanna.cs.rmit.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,f6d3d5dfe98bed4,start
X-Google-Attributes: gid102983,public
From: lawsonh@melb.cpr.itg.telecom.com.au (Lawson Hanson)
Subject: Re: Compiling Moo-Tiff, Please Help!
Date: 1996/09/29
Message-ID: <lawsonh.844033604@pelican>
X-Deja-AN: 186075325
references: <52fggu$rdh@goanna.cs.rmit.edu.au>
organization: Telecom Research Laboratories, Melbourne, Australia.
newsgroups: aus.computers.linux