什么是cassandra c ++驱动程序的兼容gcc版本

时间:2015-04-22 18:30:29

标签: cql

我从http://datastax.github.io/cpp-driver/topics/building/

安装了Cassandra c ++驱动程序

我正在尝试编译http://datastax.github.io/cpp-driver/

中给出的示例程序

我收到以下错误:

g++  -lcassandra -lgcc_s basic.c -o basic
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcassandra.so: undefined reference to `__sync_val_compare_and_swap_4'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcassandra.so: undefined reference to `__sync_fetch_and_sub_8'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcassandra.so: undefined reference to `__sync_fetch_and_add_8'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcassandra.so: undefined reference to `__sync_lock_test_and_set_8'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcassandra.so: undefined reference to `__sync_val_compare_and_swap_8'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcassandra.so: undefined reference to `__sync_fetch_and_sub_4'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcassandra.so: undefined reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status

任何人都可以帮我解决这些错误。 我搜索了错误,我可以找到的简单解决方案是升级gcc版本。 任何建议都会有所帮助。 提前致谢

最诚挚的问候 Narayana Vasa

0 个答案:

没有答案