Skip to content

Usage example in Docs not compiling. #110

@CMF-TOM

Description

@CMF-TOM

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):

  • OS: Win11
  • Compiler: GCC 9.2.0 minGW

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions