[Expat-discuss] makefile to use expat

Jun Cao caoj at purdue.edu
Mon Feb 18 21:32:39 CET 2008

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


OBJS = model.o

all: ${OBJS} project

project: ${OBJS}
 ${CC}  -o $@ ${OBJS} ${LIBS}

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


----- Original Message ----- 
From: "Sebastian Pipping" <webmaster at hartwork.org>
To: <caoj at purdue.edu>
Cc: <expat-discuss at libexpat.org>
Sent: Monday, February 18, 2008 3:33 PM
Subject: Re: [Expat-discuss] makefile to use expat

> caoj at purdue.edu 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

More information about the Expat-discuss mailing list