안녕하세요?
외부라이브러리를 포함하여 link 시 아래 빨간 부분과 같이 에러가 납니다..
고수님들의 도움 부탁드립니다...
참고로 /forex/forex_c/lib/FKCOMM.a 는 해당 경로에 있구요..
환경 : AIX5.1, ASE 12.5
------------------------------------------------------------------------------------
forex@ForexSVR1:/forex/forex_c/src/cs>make -f of_make
`sh sybopts.sh compile` -I. -I/forex/forex_c/include -I${SYBASE}/${SYBASE_OCS}/include -L${SYBASE}/${SYBASE_OCS}/lib -o /forex/forex_c/lib/ofacfilter /forex/forex_c/lib/forexutil.c `sh sybopts.sh ocsbase`/include/sybesql.c ofacfilter.c clscomm.c `sh sybopts.sh ct cs comlibs` `sh sybopts.sh syslibs` -l /forex/forex_c/lib/FKCOMM.a
/forex/forex_c/lib/forexutil.c:
1506-261 (W) Suboption 620 is not valid for option tune.
"/forex/forex_c/include/forexofac.h", line 11.25: 1506-209 (W) Character constants must end before the end of a line.
/sybase/OCS-12_5/include/sybesql.c:
1506-261 (W) Suboption 620 is not valid for option tune.
ofacfilter.c:
1506-261 (W) Suboption 620 is not valid for option tune.
"/forex/forex_c/include/forexofac.h", line 11.25: 1506-209 (W) Character constants must end before the end of a line.
clscomm.c:
1506-261 (W) Suboption 620 is not valid for option tune.
"/forex/forex_c/include/forexofac.h", line 11.25: 1506-209 (W) Character constants must end before the end of a line.
ld: 0706-006 Cannot find or open library file: -l /forex/forex_c/lib/FKCOMM.a
ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 255.
Stop.
------------------------------------------------------------------------------------
makeFile 입니다...
------------------------------------------------------------------------------------
# Make the Embedded SQL/C sample programs.
#
# Change the following definitions as appropriate for your site:
# MAKE = make CC="$(CC)" AS="$(AS)" LD="$(LD)" AR="$(AR)" CPP="$(CPP)" SYBPLATFORM="$(SYBPLATFORM)"
#
SHELL = /bin/sh
HEADERS = $(C_PATH)/include
TARGET1 = $(C_PATH)/lib/ofacfilter
OCSBASE = `sh sybopts.sh ocsbase`
INCLUDE = -I. \
-I$(C_PATH)/include \
-I$${SYBASE}/$${SYBASE_OCS}/include
LIBFLAGS = -L$${SYBASE}/$${SYBASE_OCS}/lib
SYBLIBDIR = $(OCSBASE)/lib/
CFLAGS = $(INCLUDE) $(LIBFLAGS)
PRECOMP = `sh sybopts.sh precomp`
LINK.c = `sh sybopts.sh compile` $(CFLAGS)
SYBLIBS = `sh sybopts.sh ct cs comlibs`
SYSLIBS = `sh sybopts.sh syslibs`
all: $(TARGET1)
$(TARGET1): $(HEADERS) ofacfilter.c clscomm.c
$(LINK.c) -o $@ $(C_PATH)/lib/forexutil.c $(OCSBASE)/include/sybesql.c ofacfilter.c clscomm.c $(SYBLIBS) $(SYSLIBS) \
-l $(C_PATH)/lib/FKCOMM.a
ofacfilter.c: ofacfilter.cp
$(PRECOMP) ofacfilter.cp
clscomm.c: clscomm.cp
$(PRECOMP) clscomm.cp
clean:
rm -f ofacfilter.o $(TARGET1) ofacfilter.c
rm -f clscomm.o $(TARGET1) clscomm.c
|