找不到与g ++有关的vertica指令的libintl.h文件

时间:2018-10-04 17:44:16

标签: c++ user-defined-functions vertica

我正在尝试让Vertica instructions编译其示例文件,但出现以下错误:

  

./ include / Vertica.h:62:10:致命错误:找不到'libintl.h'文件

我正在运行此脚本:

g++ -D HAVE_LONG_INT_64 -I ./include -I -Wall -shared -Wno-unused-value -fPIC -o MyUDF.so StringTokenizer.cpp ./include/Vertica.cpp

我也一直尝试使用自制软件安装getText并进行以下导出:

  export LDFLAGS="-L/usr/local/opt/gettext/lib"
  export CPPFLAGS="-I/usr/local/opt/gettext/include"

有什么办法解决我的错误吗?

修改

手动提供-L / usr / local / opt / gettext / lib -I / usr / local / opt / gettext / include时出现新错误:

Undefined symbols for architecture x86_64:
  "_libintl_gettext", referenced from:
      gettext(char const*) in Vertica-9f5253.o

编辑2:已解决

这是为我解决的解决方案:

g++ -D HAVE_LONG_INT_64 -L /usr/local/opt/gettext/lib -I/usr/local/opt/gettext/include -I ./include -lintl -Wall -shared -Wno-unused-value -fPIC -o MyUDF.so StringTokenizer.cpp ./include/Vertica.cpp

帮助添加了-lintl

0 个答案:

没有答案