On Wed, 10 Aug 2011, Carsten Haitzler (The Rasterman) wrote:

> On Tue, 9 Aug 2011 10:17:09 +0200 (CEST) Vincent Torri <vto...@univ-evry.fr>
> said:
>
> hmm welll the EAPI was there so *IF* u build the app AS a .so (.dll) then
> elementary quicklaunch can run it faster (skipping several link and setup 
> steps
> that are pre-done). thats why its EAPI. but if u build an executable on linux
> the EAPI is harmless and doesnt hurt
>
> so what you are saying here is this:
>
> on linux we can put EAPI in binaries without harm
> on windows putting EAPI in a binary will cause the compile to fail? (as 
> opposed
> to a dll)?

I say that EAPI, in a binary that includes an EFL, is defined as 
__declspec(dllimport), that mean that the symbol is imported from a DLL., 
so in a program using elm:

#include <Elementary.h>

// EAPI is __declspec(dllimport)

EAPI int elm_main()
{  ***
}

so the linker searches for elm_main() into a DLL, which is obviously not 
the case, hence an error.

Vincent

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to