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.

want to compile a zeromq program with boost library and boost threadpool from sourceforge however, got error

gcc -g server.c -lzmq -lboost_system-mt -pthread -o server `pkg-config --cflags --libs gtk+-2.0`
In file included from /usr/include/boost/config.hpp:40:0,
                 from /usr/include/boost/utility/addressof.hpp:15,
                 from /usr/include/boost/utility.hpp:12,
                 from boost/./threadpool/./detail/locking_ptr.hpp:24,
                 from boost/./threadpool/./detail/future.hpp:21,
                 from boost/./threadpool/future.hpp:21,
                 from boost/threadpool.hpp:20,
                 from server.c:6:
/usr/include/boost/config/select_stdlib_config.hpp:17:19: fatal error: cstddef: No such file or directory
compilation terminated.
share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.