我有以下问题.在我的Ubuntu上,我尝试构建一个项目并收到以下链接器错误:
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_thread.a(once.o): undefined reference to symbol 'pthread_once@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO
missing from command line collect2: error: ld returned 1 exit status
make[2]: *** [sunprint] Error 1 make[1]: ***
[CMakeFiles/sunprint.dir/all] Error 2 make: *** [all] Error 2
*** Failure: Exit code 2 ***
Run Code Online (Sandbox Code Playgroud)
我在ubuntu 13桌面,GCC 4.8,boost ver下运行.是1.54.作为我正在使用的IDE是KDevelop.如果需要,我可以提供有关此问题的任何其他信息,但现在我遇到了这个链接问题.
有任何想法吗?Thanx提前.
在旧的 PostgreSQL 数据库中,我尝试删除发出命令的现有索引:
DROP INDEX testing.idx_testing_data_model_output_data_id;
Run Code Online (Sandbox Code Playgroud)
并查看错误:
ERROR: index "<index name>" does not exist
Run Code Online (Sandbox Code Playgroud)
但是我可以使用以下\d <table name>命令查看索引:
DROP INDEX testing.idx_testing_data_model_output_data_id;
Run Code Online (Sandbox Code Playgroud)
好的,当我尝试创建索引时,我收到以下错误:
ERROR: relation "<index name>" already exists
Run Code Online (Sandbox Code Playgroud)
似乎索引创建或索引删除没有成功完成。我该如何解决这个问题?