-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-DBUILD_SHARED_LIBS=ON cannot work in Windows #1396
Comments
@kouzhudong Unfortunately I don't understand Chinese. Is it possible to compile it in English? |
|
@clementperon maybe you have an idea why it's not working? |
@seladb I think shared library never worked on windows no? I will try to see if I can reproduce on my machine |
@clementperon I think you're right! If you can confirm it that'd be great |
I'm getting this same issue and I'd like to compile it with shared libs. What sort of memory DLL issue is it? |
I tested it a long time ago, but if I remember correctly a shared library on Windows doesn't work well because many of PcapPlusPlus APIs expose a direct access to the internal library memory (i/.e |
I think it is worth trying to investigate the possibility of this topic again. |
@clementperon do you remember if you tested it when we migrated to CMake? 🤔 |
We already open once the topic I could try to fix the build but I would not be able to push further |
Thank you @clementperon ! I had a vague memory that we already discussed this 😄 |
I got this working yesterday. You just have to compile hash_library, Common++, Packet++, and Pcap++ (I forget if there was one more but essentially just the main 3 with their deps) with /MT instead of /MD. Of course your binary still requires npcap to run on a different system but that's to be expected. |
Because there is no lib generated
The text was updated successfully, but these errors were encountered: