在Linux下使用TinyXPath : tiny C++ XPath

2013-02-26 wcdj

TinyXPath : tiny C++ XPath

http://sourceforge.net/projects/tinyxpath/


下载后,Linux环境下需要写makefile以将其打包为静态库,然后供自己程序使用。

# Makfile.libtinyxpath

# Linux下创建libtinyxpath.a
# 方法:
# [1] make -f Makefile.configure
# [2] ./configure
# [3] make
# [4] make -f Makfile.libtinyxpath

CC     = gcc
CXX    = g++
RANLIB = ranlib
AR     = ar
AROPT  = -scurv

LIB_TOOLS = libtinyxpath.a  

# 16个.o文件
OBJS_TOOLS = action_store.o htmlutil.o lex_util.o node_set.o tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o tokenlist.o xml_util.o xpath_expression.o xpath_processor.o xpath_stack.o xpath_static.o xpath_stream.o xpath_syntax.o

all: $(LIB_TOOLS)

$(LIB_TOOLS): $(OBJS_TOOLS)
	$(AR) $(AROPT) $@ $?
	$(RANLIB) $@




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值