使错误centos5缺少分隔符

时间:2013-06-05 07:47:12

标签: gcc centos

#begin
# Copyright (c) 2009-2010 Satoshi Nakamoto
# Distributed under the MIT/X11 software license, see the accompanying
# file license.txt or http://www.opensource.org/licenses/mit-license.php.
CXX=g++
DEPSDIR=/Bitcoin/Deps
INCLUDEPATHS= -I"$(DEPSDIR)/include"
LIBPATHS= -L"$(DEPSDIR)/lib"
WXINCLUDEPATHS=$(shell wx-config --cxxflags)
WXLIBS=$(shell wx-config --libs)
USE_UPNP=
DEFS= -DNOPCH -DFOURWAYSSE2 -DUSE_SSL
LIBS= -dead_strip n
-Wl,-Bstatic n
$(DEPSDIR)/lib/libdb_cxx-5.1.a n
-mtl $(DEPSDIR)/lib/libboost_system.a n
-mtl $(DEPSDIR)/lib/libboost_thread.a n
-mtl $(DEPSDIR)/lib/libboost_filesystem.a n
-mtl $(DEPSDIR)/lib/libboost_program_options.a n
$(DEPSDIR)/lib/libdb_cxx.a n
$(DEPSDIR)/lib/libssl.a n
$(DEPSDIR)/lib/libcrypto.a n
-l ssl n
-l crypto n
-Wl,-Bdynamic n
-l gthread-2.0 n
-l z n
-l dl
ifdef USE_UPNP
LIBS += -l miniupnpc
DEFS += -DUSE_UPNP=$(USE_UPNP)
endif
DEBUGFLAGS=-g -D__WXDEBUG__
CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
HEADERS=headers.h strlcpy.h serialize.h uint256.h n
util.h key.h bignum.h base58.h script.h n
db.h net.h irc.h main.h rpc.h uibase.h n
ui.h noui.h init.h
OBJS= obj/util.o n
obj/script.o n
obj/db.o n
obj/net.o n
obj/irc.o n
obj/main.o n
obj/rpc.o n
obj/init.o n
cryptopp/obj/sha.o n
cryptopp/obj/cpu.o
all: bitcoind
obj/%.o: %.cpp $(HEADERS)
    $(CXX) -c $(CXXFLAGS) $(WXINCLUDEPATHS) -DGUI -o $@ $<
cryptopp/obj/%.o: cryptopp/%.cpp
    $(CXX) -c $(CXXFLAGS) -O3 -o $@ $<
bitcoin: $(OBJS) obj/ui.o obj/uibase.o
    $(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS)
obj/nogui/%.o: %.cpp $(HEADERS)
    $(CXX) -c $(CXXFLAGS) -o $@ $<
bitcoind: $(OBJS:obj/%=obj/nogui/%)
    $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
clean:
    -rm -f obj/*.o
    -rm -f obj/nogui/*.o
    -rm -f cryptopp/obj/*.o
    -rm -f headers.h.gch
    -rm -f bitcoin
    -rm -f bitcoind
#end

当我运行这个make文件时,我在第14行遇到错误的分隔符

-Wl,-Bstatic n

我无法想象我的生活,所以如果有人能对我有任何帮助那就太棒了!

如果有人想知道我正在构建本指南http://www.staff.tugraz.at/michael.steurer/Bitcoin-CentOS5.5-V1.pdf

1 个答案:

答案 0 :(得分:0)

显然,您没有使用该文档中的Makefile。

你错过了行尾的所有\,你没有缩进(在Makefile中与BTW相关)。