[strongSwan] building a VICI application in C failes
irmscher.thomas at gmail.com
Sat Feb 6 14:54:27 CET 2016
I'm trying to build an application that uses VICI in C, but I didn't
succeeded in get it running.
After trying many ways I hope to get some information from you.
The C client is the example from the API page
I compiled strongswan with the options ./configure --enable-vici
But everytime I try to build the C code I get errors that some header
files couldn't be found.
The testvici.c (shown below) lies in the folder /home/user/devheaders
and I try to build it with: gcc -o testvici testvici.c
But I always get errors that libraries like config.h or printf_hook.h
could'nt be found. In the case of printf_hook.h the path to it should be
right and the library exists there.
Please describe me somebody which setting I have to prepare in order to
build a vici application properly. So where do I have to store my C
client (testvici.c) and which header-files have I to include at which path?
Thank you very much!
int main(int argc, char *argv)
int ret = 0;
conn = vici_connect(NULL);
/* do stuff
ret = errno;
fprintf(stderr, "connecting failed: %s\n", strerror(errno));
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users