li gong
li gong

Reputation: 3

clang compile failed on mariadb

system is CentOS(VirtualBox) x64
I had "yum install" and "yum check" cmake clang gcc libstdc++ and compat-libstdc++*
I had link cmake to clang
I had compile a "HelloWorld" program by clang successed

then,
I try to compile mariadb'code use : "cmake . -DBUILD_CONFIG=mysql_release".
I got error like this:
...
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:54 (message): The C++ compiler "/usr/bin/clang++" is not able to compile a simple test program.
...
/usr/bin/ld: cannot find -lstdc++
...

How can I fix this problem? Thanks very much!
(Please forgive me for my poor English T_T)

Upvotes: 0

Views: 524

Answers (1)

Knud Larsen
Knud Larsen

Reputation: 5909

Getting libstdc++-devel, etc. etc. c++ : # yum install gcc-c++

Upvotes: 0

Related Questions