none
OpenVPN build, SWiG cannot find header files RRS feed

  • Question

  • 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 https://social.msdn.microsoft.com/Forums/getfile/1357968. 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 https://social.msdn.microsoft.com/Forums/getfile/1357970 and https://social.msdn.microsoft.com/Forums/getfile/1357969

    Thank you.

    Sincerely,
    Chris

    Sunday, November 11, 2018 6:41 AM

All replies

  • Well, changing the path like this https://social.msdn.microsoft.com/Forums/getfile/1357971 works but it can't solve the other header files now. I guess that's because VisualStudio ignores all directories from OpenVPN project?
    Sunday, November 11, 2018 6:42 AM
  • Hi Chris,

    Welcome to the MSDN forum.

    Refer to your description, your issue is about the OpenVPN which is a third party technology. Since our forum is to discuss the VS IDE, please redirect to the OpenVPN forum: https://forums.openvpn.net/ to seek for a better support, thank you for your understanding.

    If you have any other VS IDE issues in the future, please feel free to let us know.

    Best regards,

    Sara


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, November 12, 2018 6:41 AM