欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

fastDB在linux下安装 LinuxOracleUnix脚本C

程序员文章站 2022-07-14 13:10:03
...
本文原创作品,如需转载请注明来源,作者:galebo
最近研究fastdb,下了个安装包http://www.fastdb.org/fastdb-3.62.tar.gz
在configure时报checking whether compiling with multithread support... yes
checking for pthread_create in -lpthread... no,目前无办法解决。
换其他办法
直接用安装文件夹里面的makefile.gnu,看了说明这个是UNIX下的脚本。
使用这个报
[oracle@galebo fastdb]$ make -f makefile.gnu 
g++ -c -Iinc -Wall -O0 -g -fPIC -Wno-invalid-offsetof -pthread -fPIC src/class.cpp
cc1plus: unrecognized option `-Wno-invalid-offsetof'
编辑此文件,去掉此选项。
编译通过,但是链接时报错:
subsql.o(.text+0x1a8): In function `dbSubSql::dbSubSql(dbDatabase::dbAccessType)':
src/subsql.cpp:130: undefined reference to `_Unwind_Resume'

这个是需要增加-lgcc_s 链接库。
最后全部通过,由于未使用automake,中间文件和最终链接库都在当前目录,自己建文件夹lib,将文件放置此目录。
算是装上fastdb了。