Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
martin@martin-VirtualBox:~/Downloads/LivefeedServer$ sudo clang -O4 -g server.c -g -lboost_thread-mt -lboost_system -I/usr/include/boost -I/home/martin/Downloads/jsoncpp-src-0.6.0-rc2/include -L/home/martin/Downloads/jsoncpp-src-0.6.0-rc2/src/lib_json -lzmq -fPIC -lstdc++ -pthread -fexceptions -o server
In file included from server.c:9:
In file included from /usr/include/boost/thread.hpp:13:
In file included from /usr/include/boost/thread/thread.hpp:17:
In file included from /usr/include/boost/thread/pthread/thread_data.hpp:9:
/usr/include/boost/thread/exceptions.hpp:19:10: fatal error: 'string' file not
      found
#include <string>
         ^
1 error generated.

clang got compile error when use boost

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.