Page 1 of 1

OpenVPN build, SWiG cannot find header files

Posted: Sat Nov 10, 2018 8:46 pm
by XXvevo

I'm currently trying to use SWiG to create an interface for ovpncli.hpp in order to be able to access the API from my C# project.

First of all, I would like to know why Visual Studio (tested with 2015 and 2017) ignores all directories in the OpenVPN project folder as like as shown in the image I basically added the OpenVPN project to my current project using Visual Studio.

And my main problem is that SWiG ignores all specified headers if I compile the file ovpncli.i with the following command:
C:\swigwin-3.0.12\swig -c++ -csharp -outdir C:\swigwin-3.0.12\Generated ovpncli.i
Please check this image

Thank you.


Re: OpenVPN build, SWiG cannot find header files

Posted: Sun Nov 11, 2018 6:34 am
by XXvevo
Well, changing the path like this works but it can't solve the other header files now. I guess that's because VisualStudio ignores all directories from OpenVPN project?