Ecere SDK/eC Forums • View topic - Can we invoke Ecere components from other languages?




Ecere SDK/eC Forums

Ecere Developers Community

Can we invoke Ecere components from other languages?

Forum for talking about anything else Ecere/eC related.

Can we invoke Ecere components from other languages?

Postby nowind_lee » Sat Sep 10, 2011 11:46 pm

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?
nowind_lee
 
Posts: 29
Joined: Tue Jul 06, 2010 4:11 am

Re: Can we invoke Ecere components from other languages?

Postby jerome » Sun Sep 11, 2011 12:21 am

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
jerome
Site Admin
 
Posts: 622
Joined: Sat Jan 16, 2010 11:16 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron