Open vipcxj opened 4 days ago
rtc::binary
is not declared in a __declspec(dllimport)
class, it is just a type declared at namespace top-level. No import should be involved.
I know, but the reality is that defining a vector<byte>
directly myself causes the lnk1169 error, and including "rtc/common.hpp"
directly still gives the same error, but including "rtc/track.hpp"
or including "rtc/rtc.hpp"
the error disappears. So I deduced that it had something to do with __declspec(dllimport)
.
detail see here
It seems that
rtp::binary
declared in a__declspec(dllimport)
class causing we can not declare anotherstd::vector<std::byte>
in our application.I know the c++ api compatibility is very poor, especially with the c++ api that uses stl. what I didn't anticipate was the conflicts that arise even when compiling libdatachannel with the source code~.