Re: makefile to use expat
"Jun Cao" <[email protected]> Mon, 18 Feb 2008 15:32:39 -0500
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <6ECC1883FFC94751B08C6B32E2E1C2D5@JunCaoPC> |
I use the following makefile:
CC = gcc
GSL_LIB = -L/opt/osg/expat/lib
GSL_INC = -I/opt/osg/expat/include
LIBS = ${GSL_LIB} -lexpat
CFLAGS = ${GSL_INC}
OBJS = model.o
all: ${OBJS} project
project: ${OBJS}
${CC} -o $@ ${OBJS} ${LIBS}
run:
./project
I pass the compilation, but I got the folllowing error:
-bash-3.00$ ./project
./project: error while loading shared libraries: libexpat.so.1: cannot open
shared object file: No such file or directory
Jun
----- Original Message -----
From: "Sebastian Pipping" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Monday, February 18, 2008 3:33 PM
Subject: Re: [Expat-discuss] makefile to use expat
> [email protected] wrote:
>> I am a new user of expat, my linux cluster system admistrator have
>> installed expat in the directory /opt/osg/expat/. What kind of commands
>> do I have to include in my makefile to use expat? Could somebody post a
>> simple makefile example to use it? Thanks.
>
> What do you have so far? What errors do you get?
>
>
>
> Sebastian
>
>