nimbuscontrols / EIPScanner

Free implementation of EtherNet/IP in C++
https://eipscanner.readthedocs.io/en/latest/
MIT License
244 stars 99 forks source link

Usage example in Docs not compiling. #110

Open CMF-TOM opened 6 months ago

CMF-TOM commented 6 months ago

Describe the bug Documentation is very good organised but first usage example is not working for me. https://eipscanner.readthedocs.io/en/latest/getting_started.html#usage

To Reproduce Fallowing the usage directly after buıld ıs complete wıth no issue on minGW (However MSVC does not compile)

also: in CMakeLists.txt include_directories("${EIPScanner_DIR}/include") and in main.cpp

#include <EIPScanner/MessageRouter.h>
#include <EIPScanner/utils/Logger.h>
#include <EIPScanner/utils/Buffer.h>

this does not compile, I tried this as fallows; in CMakeLists.txt include_directories("${EIPScanner_DIR}/include/EIPScanner") and in main.cpp

#include <MessageRouter.h>
#include <utils/Logger.h>
#include <utils/Buffer.h>

so the rest of the includes can use correct path, I am not sure if it is only me. and reduced this only to linker error, which the path is in system enviroments and also link_directories, bu still not succesful. EIPScanner.lib is not generated, Only EIPScannerS.lib file exist

Screenshots image

image

image

Environment (please complete the following information):

Additional context Add any other context about the problem here.