Feature #2795
using vici api(s) in the c++ application
Description
Hi Team,
I'm using the vici interface in the c++ application and got the below linking errors as extern "c" linkage is missing in the libvici.h file.
: undefined reference to `vici_init()'
: undefined reference to `vici_connect(char*)'
: undefined reference to `vici_begin(char*)'
: undefined reference to `vici_add_key_valuef(vici_req_t*, char*, char*, ...)'
: undefined reference to `vici_add_key_valuef(vici_req_t*, char*, char*, ...)'
: undefined reference to `vici_add_key_value(vici_req_t*, char*, void*, int)'
Modified the headerfile to get it working locally, can these changes be made to branch ?
Thanks,
Mallesh
History
#1 Updated by Tobias Brunner almost 7 years ago
- Tracker changed from Issue to Feature
- Status changed from New to Feedback
- Target version set to 5.7.2
- Affected version deleted (
5.7.1)
Thanks for the patch, I've pushed it to the 2795-libvici-cpp branch. However, instead of using libvici, which might be problematic due to its GPLv2 license (unless you already have a commercial strongSwan license or create an open-source software), I'd recommend you have a look at the davici C library, which is licensed under the more permissive LGPLv2.1 license.
#2 Updated by M Thotager almost 7 years ago
Thanks Brunner for the input, I will explore the davici C library.
#3 Updated by Tobias Brunner almost 7 years ago
- Category set to vici
- Status changed from Feedback to Closed
- Assignee set to Tobias Brunner
- Resolution set to Fixed