Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling
- To: crossfire (at) ifi.uio.no
- Subject: Re: Compiling
- From: Petri Heinil{ <>
- Date: Sat, 26 Feb 1994 12:43:09 +0300 (EETDST)
- In-Reply-To: <>
On Fri, 25 Feb 1994, Scott Iverson wrote:
> When I compile I get this error:
> cc -o crossfire apply.o attack.o daemon.o encounter.o hiscore.o
> init.o input.o login.o main.o monster.o move.o obwin.o pets.o
> player.o shop.o socket.o sounds.o spells.o swamp.o swap.o
> time.o xio.o -O -Aa -D_HPUX_SOURCE +O3 +OS -L/usr/lib/X11R5
> -L/usr/local/X11R5/lib -L../common -lcross -lX11 -L/usr/local/lib/
> -lXpm -L/usr/local/X11R5
The order of libraries declared is wrong; the Xpm depends from X11,
so the X11 have to come after Xpm. The order should be:
-lcross -lXpm -lX11 .
I think the order of -L -flags is not important, but this might
be also compiler depend issue.
> /bin/ld: Unsatisfied symbols:
> XCreateImage (code)
> XGrabServer (code)
> XPutImage (code)
> XCreatePixmap (code)
> XQueryColors (code)
> XUngrabServer (code)
> XParseColor (code)
Yes these are really functions used Xpm.
> I Found that libcross.a calls these fucntions. What library needs to
> be included? I am compiling on hp-ux(9000).
The including should be OK. The compiler murmurs if it can't find
the -l -library.
///////////////////////// Petri Heinila /////////////////////////
email:
www: <A HREF="http://www.lut.fi/~hevi/">Homepage</A>
mail: Ainonkatu 2A
53100 Lappeenranta
Finland, Europe
tel: 3624 (in. LUT)