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
Describe the bug
Undefined reference if linking against static library.
Expected behavior
It should be possible to link against the static library. All references must be resolved.
Observed behavior
No object files for osdp_pcap.c and pcap_gen.c. They should be added to LIB_OSDP_SOURCES instead of LIB_OSDP_UTILS_SRC:
if (CONFIG_OSDP_PACKET_TRACE OR CONFIG_OSDP_PACKET_TRACE)
list(APPEND LIB_OSDP_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/osdp_pcap.c
)
endif()
# and later on:if (CONFIG_OSDP_PACKET_TRACE OR CONFIG_OSDP_PACKET_TRACE)
list(APPEND LIB_OSDP_SOURCES
${PROJECT_SOURCE_DIR}/utils/src/pcap_gen.c
)
endif()
Describe the bug
Undefined reference if linking against static library.
Expected behavior
It should be possible to link against the static library. All references must be resolved.
Observed behavior
No object files for
osdp_pcap.c
andpcap_gen.c
. They should be added toLIB_OSDP_SOURCES
instead ofLIB_OSDP_UTILS_SRC
:Additional context
Config using CMake:
A Comprehensive Log file
The text was updated successfully, but these errors were encountered: