whoenig / vicon-datastream-sdk

inofficial VICON DataStream SDK with cmake support
MIT License
17 stars 14 forks source link

Data Stream Access in another cpp file #5

Open HoomaanMoradi opened 1 year ago

HoomaanMoradi commented 1 year ago

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.

whoenig commented 1 year ago

I would need more details about maincode.cpp and functioncode.cpp. In particular, what is "I cannot read it" mean?