Closed AbderrahmaneBr closed 3 months ago
an example:
# Find PcapPlusPlus library
find_package(PcapPlusPlus REQUIRED)
# Add your project source files and link against PcapPlusPlus library
add_executable(hello_world hello_world.cpp)
target_link_libraries(hello_world PcapPlusPlus::Packet++ PcapPlusPlus::Pcap++ PcapPlusPlus::Common++)
Thanks it helped!
I'm using Cmake and vcpkg to link Pcap++ to my environment.
here's the Cmake
CMakeLists.txt
file:here's
src/main.cpp
here's the Error i get when building the project:
I've been trying to fix this problem for the past week but couldn't, can somebody help?