Andrew Stitcher created PROTON-1664:
---------------------------------------
Summary: C++ binding examples fail to build stand lone
Key: PROTON-1664
URL: https://issues.apache.org/jira/browse/PROTON-1664
Project: Qpid Proton
Issue Type: Bug
Components: cpp-binding
Affects Versions: proton-c-0.18.0
Reporter: Andrew Stitcher
Assignee: Andrew Stitcher
Fix For: proton-c-0.18.1
If you build the c++ examples standalone you get
{noformat}
[ 2%] Linking CXX executable multithreaded_client
/usr/bin/ld: CMakeFiles/multithreaded_client.dir/multithreaded_client.cpp.o:
undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/multithreaded_client.dir/build.make:95: recipe for target
'multithreaded_client' failed
make[2]: *** [multithreaded_client] Error 1
make[2]: Target 'CMakeFiles/multithreaded_client.dir/build' not remade because
of errors.
CMakeFiles/Makefile2:67: recipe for target
'CMakeFiles/multithreaded_client.dir/all' failed
make[1]: *** [CMakeFiles/multithreaded_client.dir/all] Error 2
[ 4%] Linking CXX executable multithreaded_client_flow_control
/usr/bin/ld:
CMakeFiles/multithreaded_client_flow_control.dir/multithreaded_client_flow_control.cpp.o:
undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/multithreaded_client_flow_control.dir/build.make:95: recipe for
target 'multithreaded_client_flow_control' failed
make[2]: *** [multithreaded_client_flow_control] Error 1
make[2]: Target 'CMakeFiles/multithreaded_client_flow_control.dir/build' not
remade because of errors.
CMakeFiles/Makefile2:104: recipe for target
'CMakeFiles/multithreaded_client_flow_control.dir/all' failed
make[1]: *** [CMakeFiles/multithreaded_client_flow_control.dir/all] Error 2
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]