gnu.gcc.help
[Top] [All Lists]

second object file not being made

Subject: second object file not being made
From: ""
Date: 28 Jul 2006 13:16:21 -0700
Newsgroups: gnu.gcc.help
Can someone tell me why the second object file in the code never gets
made?

I have only two to link.

But whatever I complile second does not get made. No errors occur till
inkage.

In the example below, print_error will not compile - it is ignored. If
I change the order ity is compiled but the other file is not.



C=cc -m32 -B/usr/lib/i386-redhat-linux3E/lib/
INSTALLPATH=/usr/local

EXTRALIBS=-lesrpc -lessupp -lesextra
LDPATH=-L ${INSTALLPATH}/easysoft/lib
-L${INSTALLPATH}/easysoft/oob/client -L${I
NSTALLPATH}/easysoft/unixODBC/lib
INCPATH=${INSTALLPATH}/easysoft/oob/client/include
OBJS=readisam.o print_error.o
CFLAGS=-g -I${INCPATH}

all :   print_error readisam
        readisamfile

readisam:       readisam.o
        ${CC} ${CFLAGS} -o readisam readisam.o ${LDPATH} \
                -lesoobclient ${EXTRALIBS}

print_error: print_error.o
        ${CC} ${CFLAGS} -o print_errorprint_error.o ${LDPATH} \
                -lesoobclient ${EXTRALIBS}

readisamfile:   readisam.o print_error.o
        ${CC} ${CFLAGS}  -o  readisamfile ${OBJS)  ${LDPATH} \
                -lodbc


<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy