Hello All,
I am relatively new to TCL, the topic I am exploring is that I would
like to see whether we can call the methods from my custom c ++
library in TCL scripts. Is there any command available in TCL to
call the method from external C ++ library. I am assuming this
library has to be put along with the other TCL libraries.
Lakshmi Ganesh <lakshmiganes...@gmail.com> wrote:
Hello All,
I am relatively new to TCL, the topic I am exploring is that I wouldTcl does not have a native foreign function interface.
like to see whether we can call the methods from my custom c ++
library in TCL scripts. Is there any command available in TCL to
call the method from external C ++ library. I am assuming this
library has to be put along with the other TCL libraries.
The traditional way to do this is to write a small amount of C (or in
your case C++) glue to provide that interface between scripts and C (or
C++) functions.
However, there is a FFI extension:
https://wiki.tcl-lang.org/page/Ffidl
The wiki page does say the last update was 2018, so your mileage may
vary with it. The page also links to a couple other extensions.
I am relatively new to TCL, the topic I am exploring is that I would like to see whether we can call the methods from my custom c ++ library in TCL scripts. Is there any command available in TCL to call the method from external C ++ library. I amassuming this library has to be put along with the other TCL libraries.
On Wednesday, April 26, 2023 at 12:31:29â¯PM UTC-5, Rich wrote:
Lakshmi Ganesh <lakshmiganes...@gmail.com> wrote:
Hello All,
I am relatively new to TCL, the topic I am exploring is that I wouldTcl does not have a native foreign function interface.
like to see whether we can call the methods from my custom c ++
library in TCL scripts. Is there any command available in TCL to
call the method from external C ++ library. I am assuming this
library has to be put along with the other TCL libraries.
The traditional way to do this is to write a small amount of C (or in
your case C++) glue to provide that interface between scripts and C (or C++) functions.
However, there is a FFI extension:
https://wiki.tcl-lang.org/page/Ffidl
The wiki page does say the last update was 2018, so your mileage may
vary with it. The page also links to a couple other extensions.
Thank you very much for the pointer RIch !!!
Hello All,assuming this library has to be put along with the other TCL libraries.
I am relatively new to TCL, the topic I am exploring is that I would like to see whether we can call the methods from my custom c ++ library in TCL scripts. Is there any command available in TCL to call the method from external C ++ library. I am
Any réponse is much appreciated.
Thanks,
Ganesh.
Hello All,assuming this library has to be put along with the other TCL libraries.
I am relatively new to TCL, the topic I am exploring is that I would like to see whether we can call the methods from my custom c ++ library in TCL scripts. Is there any command available in TCL to call the method from external C ++ library. I am
Any réponse is much appreciated.
Thanks,
Ganesh.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 493 |
Nodes: | 16 (2 / 14) |
Uptime: | 180:48:41 |
Calls: | 9,705 |
Files: | 13,737 |
Messages: | 6,179,422 |