Guest User

Untitled

a guest
Jun 27th, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. Greetings again!
  2.  
  3. I have what I think is a linking error somewhere and was wondering if anyone could assist on this one. Basically I have built a shared object (.so) from the general <./configure , make , make install> process from a third party developer.
  4.  
  5. The library is located in : /usr/local/lib/libasteriskcpp.so
  6.  
  7. The include directory is in : /usr/local/include/asteriskcpp
  8.  
  9. There is a single main.cpp file in my directory where compilation takes place named main.cpp.
  10.  
  11. My compilation command being used is: g++ -I/usr/local/include/asteriskcpp/ main.cpp -o Test01 -lasteriskcpp -lboost_system
  12.  
  13. Upon running this command I receive:
  14.  
  15. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::GetConfigResponse::GetConfigResponse(std::string const&)'
  16. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::ModuleCheckResponse::ModuleCheckResponse(std::string const&)'
  17. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::SkypeBuddyResponse::SkypeBuddyResponse(std::string const&)'
  18. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::PingResponse::PingResponse(std::string const&)'
  19. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::GetVarResponse::GetVarResponse(std::string const&)'
  20. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::MailboxCountResponse::MailboxCountResponse(std::string const&)'
  21. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::ExtensionStateResponse::ExtensionStateResponse(std::string const&)'
  22. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(std::string const&)'
  23. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::MailboxStatusResponse::MailboxStatusResponse(std::string const&)'
  24. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::CoreSettingsResponse::CoreSettingsResponse(std::string const&)'
  25. /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::CoreStatusResponse::CoreStatusResponse(std::string const&)'
  26. collect2: error: ld returned 1 exit status
  27.  
  28. When I grep for something like 'GetConfigResponse' in the /usr/local/include/asteriskcpp directory I can see these methods such as this:
  29.  
  30. [root@lmnop01dev AsteriskTestingCPP]# grep -rnw /usr/local/include/asteriskcpp/ -e 'GetConfigResponse' --color
  31. /usr/local/include/asteriskcpp/manager/actions/GetConfigAction.h:17: * The GetConfigAction returns a GetConfigResponse.
  32. /usr/local/include/asteriskcpp/manager/actions/GetConfigAction.h:20: * @see org.asteriskjava.manager.response.GetConfigResponse
  33. /usr/local/include/asteriskcpp/manager/actions/GetConfigAction.h:23: * @ExpectedResponse(GetConfigResponse)
Advertisement
Add Comment
Please, Sign In to add comment