Hi,
I have written a small C program that uses the C client library (Ubuntu 16.04 - latest client version as of this date) to connect to Aerospike.
I am using the following command to compile:
g++ -o dim.out -L/usr/lib/ -laerospike -I/usr/include/ dimension_reader.cpp main.cpp
I get this error during compilation:
/tmp/cchIjT7W.o: In function `as_key_init_str':
dimension_reader.cpp:(.text+0x1f54): undefined reference to `as_key_init_strp'
/tmp/cchIjT7W.o: In function `DimensionReader::DimensionReader(char const*, int)':
dimension_reader.cpp:(.text+0x1f75): undefined reference to `as_config_init'
dimension_reader.cpp:(.text+0x1f8e): undefined reference to `as_config_add_host'
dimension_reader.cpp:(.text+0x1fa8): undefined reference to `aerospike_init'
dimension_reader.cpp:(.text+0x1fc8): undefined reference to `aerospike_connect'
I have all the libraries and header files on my system. Any idea what could be the cause of this?
Any help much appreciated.
Thanks! Aashish