Data Stream Access in another cpp file
HoomaanMoradi opened this issue · 1 comments
Hello Wolfgang,
I appreciate the repository you provided. Thanks to this repository, I can read the Vicon data stream in the main function of my project in cpp. However, the issue is that I cannot read the same data stream in another cpp code in the same project. This is how I wrote the CMake file:
add_executable(foo maincode.cpp functioncode.cpp)
target_link_libraries(foo vicon-datastream-sdk::ViconDataStreamSDK_CPP)
Currently, it is possible to read the Vicon data stream in maincode.cpp, but I cannot read it in functioncode.cpp. Do you have any idea how I can fix this issue?
Many thanks.
I would need more details about maincode.cpp and functioncode.cpp. In particular, what is "I cannot read it" mean?