当前位置: 技术问答>linux和unix
使用make时的一个错误的是什么意思?
来源: 互联网 发布时间:2015-03-29
本文导语: 编译器是gcc,错误是 1254-055 Dependency line needs colon or double colon operator 以下是make的源码: #--------------------------------------Below is add by HuangCY------------------------------ #变量ARBORPATH是安装路径,该目录下有api、bin...
编译器是gcc,错误是
1254-055 Dependency line needs colon or double colon operator
以下是make的源码:
#--------------------------------------Below is add by HuangCY------------------------------
#变量ARBORPATH是安装路径,该目录下有api、bin、is等目录,请根据系统安装路径设置该参数
ARBORPATH=/home/admin
TARGET = libFbiServerEssbase
ALL: $(TARGET)
#-------------------------------------------------------------------------------------------
#we use gcc, not cc
CC=gcc
#--------------------------------------Below is add by Tony---------------------------------
#INCS= -I/home/admin/api/include -I/usr/jdk_base/include -I/usr/jdk_base/include/aix
INCS= -I$(ARBORPATH)/api/include -I/usr/jdk_base/include -I/usr/jdk_base/include/aix
DEFINE=
LIBGCC = /usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2
LIBPATH1=$(ARBORPATH)/api/lib
LIBPATH2=$(ARBORPATH)/bin
LIBPATH3=$(ARBORPATH)/is/esslib
LDFLAGS = -bexpall -bM:SRE -bnoentry -lgcc -lpthread -lc -lessapi -lessotl
-lesssql -lessnet -lesssd -lesscslS -lessrsm -lglobalcS -lessutl -lessshr
-L$(LIBGCC)
-L$(LIBPATH3) -L$(LIBPATH1) -L$(LIBPATH2)
C_SRCS = FbiServerEssbase.cpp
OBJECTS = FbiServerEssbase.o
.SUFFIXES: .cpp
$(OBJECTS): $(C_SRCS)
$(CC) $(INCS) $(DEFINE) -c -o $(OBJECTS) $(C_SRCS)
# $(CC) $(INCS) $(DEFINE) -c -o a.o FbiServerEssbase.cpp
# $(CC) $(INCS) $(DEFINE) -S $(C_SRCS)
$(TARGET): $(OBJECTS)
cc $(LDFLAGS) -o $(TARGET).so $(OBJECTS)
# ld $(LDFLAGS) -o $(TARGET).so $(OBJECTS)
# cp -f $(TARGET).so /usr/lib
# ar -qv $(TARGET).a $(OBJECTS)
# ar -X64 -rv $(TARGET).a $(OBJECTS)
#
clean:
$(RM) -f $(TARGET).o $(OBJECTS)
1254-055 Dependency line needs colon or double colon operator
以下是make的源码:
#--------------------------------------Below is add by HuangCY------------------------------
#变量ARBORPATH是安装路径,该目录下有api、bin、is等目录,请根据系统安装路径设置该参数
ARBORPATH=/home/admin
TARGET = libFbiServerEssbase
ALL: $(TARGET)
#-------------------------------------------------------------------------------------------
#we use gcc, not cc
CC=gcc
#--------------------------------------Below is add by Tony---------------------------------
#INCS= -I/home/admin/api/include -I/usr/jdk_base/include -I/usr/jdk_base/include/aix
INCS= -I$(ARBORPATH)/api/include -I/usr/jdk_base/include -I/usr/jdk_base/include/aix
DEFINE=
LIBGCC = /usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2
LIBPATH1=$(ARBORPATH)/api/lib
LIBPATH2=$(ARBORPATH)/bin
LIBPATH3=$(ARBORPATH)/is/esslib
LDFLAGS = -bexpall -bM:SRE -bnoentry -lgcc -lpthread -lc -lessapi -lessotl
-lesssql -lessnet -lesssd -lesscslS -lessrsm -lglobalcS -lessutl -lessshr
-L$(LIBGCC)
-L$(LIBPATH3) -L$(LIBPATH1) -L$(LIBPATH2)
C_SRCS = FbiServerEssbase.cpp
OBJECTS = FbiServerEssbase.o
.SUFFIXES: .cpp
$(OBJECTS): $(C_SRCS)
$(CC) $(INCS) $(DEFINE) -c -o $(OBJECTS) $(C_SRCS)
# $(CC) $(INCS) $(DEFINE) -c -o a.o FbiServerEssbase.cpp
# $(CC) $(INCS) $(DEFINE) -S $(C_SRCS)
$(TARGET): $(OBJECTS)
cc $(LDFLAGS) -o $(TARGET).so $(OBJECTS)
# ld $(LDFLAGS) -o $(TARGET).so $(OBJECTS)
# cp -f $(TARGET).so /usr/lib
# ar -qv $(TARGET).a $(OBJECTS)
# ar -X64 -rv $(TARGET).a $(OBJECTS)
#
clean:
$(RM) -f $(TARGET).o $(OBJECTS)
|
建议你把安装的GNU make改名为gmake,然后在命令行执行gmake就行了。否则你需要保证GNU的make所在的路径在系统make路径之前。
|
可能需要使用GNU make