I am trying to fallow Vertica instructions to compile their sample file, but getting the below error:
./include/Vertica.h:62:10: fatal error: 'libintl.h' file not found
I am running this script:
g++ -D HAVE_LONG_INT_64 -I ./include -I -Wall -shared -Wno-unused-value -fPIC -o MyUDF.so StringTokenizer.cpp ./include/Vertica.cpp
I have also been trying to install getText using homebrew and made the following exports:
export LDFLAGS="-L/usr/local/opt/gettext/lib"
export CPPFLAGS="-I/usr/local/opt/gettext/include"
Any idea how to resolve my error?
Edit
When manually providing -L/usr/local/opt/gettext/lib -I/usr/local/opt/gettext/include getting new error:
Undefined symbols for architecture x86_64:
"_libintl_gettext", referenced from:
gettext(char const*) in Vertica-9f5253.o
Edit 2: Solved
This is the solution that worked out for me:
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
What helped was the addition of -lintl