ld: Can't find library or mismatched ABI for -lc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to compile C code on HP-UX, 64 bit.

Using built-in specs. 
Target: ia64-hp-hpux11.23 
Configured with: ../gcc/configure 
Thread model: posix 
gcc version 4.1.1 


but getting Fatal Error: 
ld: Can't find library or mismatched ABI for -lc


Can anyone explain me, what this error means?


My make script is this:

PROGNAME=afp2pdf
INCLUDES=-I./include -I./TrueTypeFontTools/include -I./PDFTools/include 
-I./Util
/include
LIBPATH=-L./,/usr/lib/hpux64
#removed parameter -lc from the next line!
CC=/usr/local/bin/ia64-hp-hpux11.23-gcc-4.1.1
CFLAGS=-mlp64
# removed parameter -b64,-berok from next line after Wl
LD_FLAGS=-b -x -t -v -shared-lib -Wl,-DD64,-L/usr/lib/hpux64

OBJS=afp2pdf.o a2pxpdf.o a2pxsdp.o a2plicen.o a2pxbco.o a2pxmmr.o 
a2p_scfn.o Red
HatItoa.o Endian.o MemUtils.o TTFConst.o TTFDataTypes.o TTFDump.o 
TTFGlyphNames.
o TTFSubset.o Array.o DataFormat.o IO.o StringBuffer.o Vector.o a2padler.o 
a2pde
fla.o a2ptrees.o a2pzutil.o ZLIBCompression.o MapFileParser.o 
PDFFontTools.o PDF
Tools.o

${PROGNAME}: ${OBJS} libUtil.a libZLibComrpession.a libPDFTools.a 
libTrueTypeFon
tTools.a
tTools.a
        ${CC} ${CFLAGS} -o ${PROGNAME} ${INCLUDES} ${LIBPATH} ${LIBS} 
${LD_FLAGS
} ${OBJS}

libUtil.a:
        cd Util && $(MAKE)

libZLibComrpession.a:
        cd ZLibCompression && $(MAKE)

libPDFTools.a:
        cd PDFTools && $(MAKE)

libTrueTypeFontTools.a:
        cd TrueTypeFontTools && $(MAKE)

$all: ${PROGNAME}

clean:
        rm -f ${PROGNAME}
        rm -f *.o



--
M. Müller

 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux