linux下C++开发make运行makefile时出错
执行make时报错:make.mkinc:4/src/makedir.mkinc:NOsuchfileordirectorymake:***Noruletomaketar...
执行make时报错:make.mkinc:4 /src/makedir.mkinc:NO such file or directory
make:*** No rule to make target '/src/makedir.mkinc'. stop.
makefile文件 :(包含了make.mkinc文件)
make.mkinc文件(包含makedir.mkinc文件)
是不是没有引用到makedir.mkinc还是目录没定义好
makedir.mkinc文件
PATH_PROJECT_COMMON_SRC = $(PATH_PROJECT_COMMON)/src
PATH_PROJECT_COMMON_LIB = $(PATH_PROJECT_COMMON)/lib
#############################################
PATH_PROJ_COMM = $(PATH_PROJECT_COMMON_SRC)/all_comm
PATH_PROJ_COMM_LIB = $(PATH_PROJECT_COMMON_LIB)
PATH_PROJ_COMM_SRC = $(PATH_PROJ_COMM)/src
PATH_PROJ_COMM_INC = $(PATH_PROJ_COMM)/include
#############################################
PATH_HASH_ZIPPER = $(PATH_PROJECT_COMMON_SRC)/hash_zipper
PATH_HASH_ZIPPER_LIB = $(PATH_PROJECT_COMMON_LIB)
PATH_HASH_ZIPPER_SRC = $(PATH_HASH_ZIPPER)
PATH_HASH_ZIPPER_INC = $(PATH_HASH_ZIPPER)
//中间省略了部分路径定义
#
C_FLAGS = -g -W -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -Wall
ifeq ($(DEBUG),)
C_FLAGS+= -O3 -s
else
C_FLAGS+= -DDEBUG_ALL
endif
CPP_FLAGS = $(C_FLAGS)
CXX = g++
CC = gcc
LD = g++ $(C_FLAGS)
AR = ar rc 展开
make:*** No rule to make target '/src/makedir.mkinc'. stop.
makefile文件 :(包含了make.mkinc文件)
make.mkinc文件(包含makedir.mkinc文件)
是不是没有引用到makedir.mkinc还是目录没定义好
makedir.mkinc文件
PATH_PROJECT_COMMON_SRC = $(PATH_PROJECT_COMMON)/src
PATH_PROJECT_COMMON_LIB = $(PATH_PROJECT_COMMON)/lib
#############################################
PATH_PROJ_COMM = $(PATH_PROJECT_COMMON_SRC)/all_comm
PATH_PROJ_COMM_LIB = $(PATH_PROJECT_COMMON_LIB)
PATH_PROJ_COMM_SRC = $(PATH_PROJ_COMM)/src
PATH_PROJ_COMM_INC = $(PATH_PROJ_COMM)/include
#############################################
PATH_HASH_ZIPPER = $(PATH_PROJECT_COMMON_SRC)/hash_zipper
PATH_HASH_ZIPPER_LIB = $(PATH_PROJECT_COMMON_LIB)
PATH_HASH_ZIPPER_SRC = $(PATH_HASH_ZIPPER)
PATH_HASH_ZIPPER_INC = $(PATH_HASH_ZIPPER)
//中间省略了部分路径定义
#
C_FLAGS = -g -W -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -Wall
ifeq ($(DEBUG),)
C_FLAGS+= -O3 -s
else
C_FLAGS+= -DDEBUG_ALL
endif
CPP_FLAGS = $(C_FLAGS)
CXX = g++
CC = gcc
LD = g++ $(C_FLAGS)
AR = ar rc 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询