[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

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" <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