Fastbit (WAH)的代码可在链接GNU Libtool中下载

安装以及运行命令如下:

解压命令:
$ tar -zxvf fastbit-ibis1.3.8.tar.gz
 
安装命令:
$ cd fastbit-ibis1.3.8
$ ./configure
$ make
 
由于安装时Makefile使用了GNU Libtool创建库,生成Libtool的库文件libfastbit.la,这个文件在./src下。
假设当前测试文件名为test.cpp,它在fastbit-ibis1.3.8下,编译运行test.cpp文件时,运行命令:
$ libtool --mode=compile g++ -c test.cpp
$ libtool --mode=link g++ -o test test.lo src/libfastbit.la
$ ./test
 
为了方便,我们可以通过写bash脚本方便我们编译和运行。
脚本cmd.sh如下:
libtool --mode=compile g++ -c test.cpp
libtool --mode=link g++ -o test test.lo src/libfastbit.la
./test
rm test
rm test.lo
 
 
运行脚本:
$ sh cmd.sh

  

 

相关文章:

  • 2021-09-15
  • 2021-07-31
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-09-17
猜你喜欢
  • 2021-12-09
  • 2021-11-16
  • 2021-09-28
  • 2021-08-01
  • 2021-07-29
  • 2021-12-29
相关资源
相似解决方案