You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before I submit a pull request I want to hear people's thoughts on this.
The text was updated successfully, but these errors were encountered:
YungRaj
changed the title
Provide an a new cmake rule to compile openvpn3 as a static library
Provide a new cmake rule to compile openvpn3 as a static library
Sep 9, 2024
I don't think this will work without major refactoring. Currently OpenVPN3 is setup to be in part as header only project. You will face singnificant challenges doing this.
Yeah I realized this after creating the bug once I made changes that would compile the library as a static library. This turned out to be a pain in the arse because since the openvpn3 is a header only library, including only 1 or 2 headers from it pulls in pretty much the whole library into the compilation. This causes issues with the linker complaining about duplicate symbols.
I recommend cloning this library into your project and then including the headers yourself so that it eventually gets compiled to the same effect as using this as static library.
Before I submit a pull request I want to hear people's thoughts on this.
The text was updated successfully, but these errors were encountered: