linux - make command error: undefined reference to `pthread_create -


i trying run codes sourceforge.net, when trying run "make" command in linux, got following error message:

make  all-recursive  make[1]: entering directory `/home/lliu/mydoc/rsvp-agent/trunk/agent_rsvp' making in src  make[2]: entering directory `/home/lliu/mydoc/rsvp-agent/trunk/agent_rsvp/src' /bin/sh ../libtool --mode=link --tag=cxx g++  -g -o2   -o agent_rsvp   agent_rsvp.o configuration.o floatformat.o generic_interface.o ip_mask.o ip_route.o mgmt_interface.o mgmt_packet.o mpls_ioctl.o rsvp_configuration.o rsvp_connection.o rsvp_dispatcher.o rsvp_error.o rsvp_packet.o rsvp_socket.o semaphore.o tools.o verbose.o  g++ -g -o2 -o agent_rsvp agent_rsvp.o configuration.o floatformat.o generic_interface.o ip_mask.o ip_route.o mgmt_interface.o mgmt_packet.o mpls_ioctl.o rsvp_configuration.o rsvp_connection.o rsvp_dispatcher.o rsvp_error.o rsvp_packet.o rsvp_socket.o semaphore.o tools.o verbose.o mgmt_interface.o: in function `mgmt_interface::init()': /home/lliu/mydoc/rsvp-agent/trunk/agent_rsvp/src/mgmt_interface.cpp:108: undefined reference `pthread_create' /home/lliu/mydoc/rsvp-agent/trunk/agent_rsvp/src/mgmt_interface.cpp:109: undefined reference `pthread_create' rsvp_connection.o: in function `rsvp_connection::create_refresh_thread()': /home/lliu/mydoc/rsvp-agent/trunk/agent_rsvp/src/rsvp_connection.cpp:136: undefined reference `pthread_create' rsvp_dispatcher.o: in function `rsvp_dispatcher::init(unsigned int)': /home/lliu/mydoc/rsvp-agent/trunk/agent_rsvp/src/rsvp_dispatcher.cpp:72: undefined reference `pthread_create' collect2: ld returned 1 exit status make[2]: *** [agent_rsvp] error 1 make[2]: leaving directory `/home/lliu/mydoc/rsvp-agent/trunk/agent_rsvp/src'  make[1 ]: * ** [all-recursive] error 1  make[1 ]: leaving directory `/home/lliu/mydoc/rsvp-agent/trunk/agent_rsvp' make: *** [all] error 2 


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -