Replies: 2 comments 3 replies
-
Iam also tried this one: py::class_<td::TlObject>TlObject(m, "TlObject");
py::class_<td_api::Object>Object(m, "Object", TlObject);
py::class_<td_api::LogStream>LogStream(m, "LogStream", Object);
py::class_<td_api::logStreamDefault>(m, "logStreamDefault", LogStream); |
Beta Was this translation helpful? Give feedback.
0 replies
-
We do not support std::unique_ptr yet, see the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I am trying to bind to the API of the tdlib library. Their library has abstract classes as well as a regular one. Abstract classes are bound without any problems. The problem arises when binding final classes. Their library uses its smart pointer. But as I understand it, it can be replaced with a unique pointer.
It is difficult to link to a github with a class that I am binding to because their library generates this class automatically. I uploaded the generated file here: https://github.com/MarshalX/td_api
In general, this is what I am trying to do:
LogStream binds without problems, but logStreamDefault does not (
Symbol not found: __ZTIN2td6td_api16logStreamDefaultE
).The CMake file and so on can be viewed in my repository https://github.com/MarshalX/tdlib
I would be grateful for any tip!
LogStream class
logStreamDefault class
Beta Was this translation helpful? Give feedback.
All reactions