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 <[email protected]> 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 <[email protected]> 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: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 152:00:20 |
| Calls: | 12,091 |
| Calls today: | 4 |
| Files: | 15,000 |
| Messages: | 6,517,631 |