Ecere SDK/eC Forums http://ecere.org/community/ Print view |
|
Can we invoke Ecere components from other languages? http://ecere.org/community/viewtopic.php?f=26&t=187 |
Page 1 of 1 |
Author: | nowind_lee [ Sat Sep 10, 2011 11:46 pm ] |
Post subject: | Can we invoke Ecere components from other languages? |
I introduced Ecere to my friends, and they have a question: Can we invoke Ecere components from other languages? For example, haskell/C/C++/Java? |
Author: | jerome [ Sun Sep 11, 2011 12:21 am ] |
Post subject: | Re: Can we invoke Ecere components from other languages? |
Thanks nowind_lee for sharing Ecere =) At the moment, it's only possible if you go through the trouble of interfacing with eC components at the C level. This means that in your eC code you write a 'C' function (if you have not defined a namespace, this is a simple as declaring a non-static function, outside of a class), which you can call from any other language which has support for calling C functions. If you have defined a namespace, you can put 'default' in front of your function definition to prevent the eC compiler from mangling the function with the namespace. Similarly, it is possible for eC to invoke C style functions in any linked in libraries. The Ecere IDE will handle projects containing C, eC and C++ files together, and can produce executables, static and shared libraries with them. Automaticaly generating bindings for all those languages is part of our plan, however! C++, Objective-C, Java and C# (CLI) are languages we're most interested in having bindings for. Regards, Jerome |
All times are UTC-05:00 | Page 1 of 1 |
Powered by phpBB® Forum Software © phpBB Limited |