Replies: 2 comments 5 replies
|
Yes only C symbols can be used from Adept. In order to allow C++ symbols without using a C wrapper, Adept would have to replicate the same behavior that C++ uses for classes, including things like copy constructors, move constructors, destructors, overloaded operators, etc. all in the same way that C++ does it. Correct me if I'm wrong, but it looks like FreeBasic compiles to C/C++, which is why it's able to do that so easily. Adept compiles to machine code, so can't just emit C++ classes like that (it would have to handle a lot of the C++ behavior itself). This might be something to look into more in the future, but it seems difficult to implement correctly |
|
I hope you could learn something cool from the way FreeBASIC is implementing it. But please note that I don't ask you to do the same as FreeBASIC. I'm not asking for this feature. This is a question and you already gave me the answer that C wrapper is needed. As far as I know, FreeBASIC's hack has it own limitations. I think I would better go with C wrapper. |
Uh oh!
There was an error while loading. Please reload this page.
I think I will need to create C wrapper first before I could use it with Adept? This is the normal procedure that is also true with other languages I have used. But recently, FreeBASIC introduced the feature to work with C++ libraries directly. Please have a look at this project to see how they are using it:
https://github.com/angros47/FLTK-headers-for-FreeBasic
This changed my mind and now I think it's possible to use C++ libraries directly without C wrappers. Since I'm new to Adept and I don't know how Adept handles it so instead of just following the normal procedure I already know, I think I should ask you directly.
All reactions