- Mesaj
- 2.854
- Çözümler
- 299
- Beğeni
- 2.137
- Puan
- 1.850
- Ticaret Puanı
- 2
Böyle bir hata alıyorum.
Kod:
root@localhost:/usr/src/mainline/Srcs/Server # gmake
gmake -C libthecore/src dep
gmake[1]: Entering directory '/usr/src/mainline/Srcs/Server/libthecore/src'
g++10 -m32 -Wall -O2 -pipe -g -I../include - -std=c++11 -MM *.c > Depend
g++10: error: -E or -x required when input is from standard input
gmake[1]: *** [Makefile:30: dep] Error 1
gmake[1]: Leaving directory '/usr/src/mainline/Srcs/Server/libthecore/src'
gmake: *** [Makefile:36: libthecore] Error 2
root@localhost:/usr/src/mainline/Srcs/Server #
makefile:
CC = g++10
BIN_DIR = ../lib
BIN = $(BIN_DIR)/libthecore.a
INCLUDE = ../include
GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3 | cut -d'.' -f1)
CFLAGS = -m32 -Wall -O2 -pipe -g -I$(INCLUDE)
CFLAGS +=- -std=c++11
LIBS =
OBJFILES = socket.o fdwatch.o buffer.o signal.o log.o utils.o \
kstbl.o hangul.o heart.o main.o tea.o des.o gost.o memcpy.o
default:
$(MAKE) $(BIN)
$(BIN): $(OBJFILES)
if [ ! -d $(BIN_DIR) ]; then mkdir $(BIN_DIR); fi
ar cru $(BIN) $(OBJFILES) $(LIBS)
ranlib $(BIN)
chmod 700 $(BIN)
clean:
rm -f *.o
rm -f $(BIN)
dep:
$(CC) $(CFLAGS) -MM *.c > Depend
$(OBJFILES):
$(CC) $(CFLAGS) -c $<
memcpy: memcpy.o utils.o log.o
$(CC) $(CFLAGS) -c -D__MAIN__ memcpy.c
$(CC) $(CFLAGS) -o memcpy memcpy.o utils.o log.o
include Depend
Kod:
root@localhost:/usr/src/mainline/Srcs/Server/game/src # gmake clean
gmroot@localhost:/usr/src/mainline/Srcs/Server/game/src # gmake
compile BattleArena.cpp
g++10: error: unrecognized command-line option '-W1,-rpath=/usr/local/lib/gcc10'
Kod:
root@localhost:/usr/src/mainline/Srcs/Server/db/src # cd /usr/src/mainline/Srcs/Server/game/src
root@localhost:/usr/src/mainline/Srcs/Server/game/src # gmake clean
root@localhost:/usr/src/mainline/Srcs/Server/game/src # gmake
compile BattleArena.cpp
g++10: error: unrecognized command-line option '-W1,-rpath=/usr/local/lib/gcc10'
gmake: *** [Makefile:124: OBJDIR/BattleArena.o] Error 1
root@localhost:/usr/src/mainline/Srcs/Server/game/src #
Son düzenleme: