Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Greetings again!
- 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.
- The library is located in : /usr/local/lib/libasteriskcpp.so
- The include directory is in : /usr/local/include/asteriskcpp
- There is a single main.cpp file in my directory where compilation takes place named main.cpp.
- My compilation command being used is: g++ -I/usr/local/include/asteriskcpp/ main.cpp -o Test01 -lasteriskcpp -lboost_system
- Upon running this command I receive:
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::GetConfigResponse::GetConfigResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::ModuleCheckResponse::ModuleCheckResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::SkypeBuddyResponse::SkypeBuddyResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::PingResponse::PingResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::GetVarResponse::GetVarResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::MailboxCountResponse::MailboxCountResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::ExtensionStateResponse::ExtensionStateResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::SkypeLicenseStatusResponse::SkypeLicenseStatusResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::MailboxStatusResponse::MailboxStatusResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::CoreSettingsResponse::CoreSettingsResponse(std::string const&)'
- /usr/local/lib/libasteriskcpp.so: undefined reference to `asteriskcpp::CoreStatusResponse::CoreStatusResponse(std::string const&)'
- collect2: error: ld returned 1 exit status
- When I grep for something like 'GetConfigResponse' in the /usr/local/include/asteriskcpp directory I can see these methods such as this:
- [root@lmnop01dev AsteriskTestingCPP]# grep -rnw /usr/local/include/asteriskcpp/ -e 'GetConfigResponse' --color
- /usr/local/include/asteriskcpp/manager/actions/GetConfigAction.h:17: * The GetConfigAction returns a GetConfigResponse.
- /usr/local/include/asteriskcpp/manager/actions/GetConfigAction.h:20: * @see org.asteriskjava.manager.response.GetConfigResponse
- /usr/local/include/asteriskcpp/manager/actions/GetConfigAction.h:23: * @ExpectedResponse(GetConfigResponse)
Advertisement
Add Comment
Please, Sign In to add comment