On Wed, 10 Aug 2011 08:00:21 +0200 (CEST) Vincent Torri <vto...@univ-evry.fr> said:
> > > 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. ok - on linux EAPI simply is "this symbol is visible/exported and not hidden". so we have a disagreement of usage. the idea is that with quicklaunch u COMPILE as a dll and then elm_main is exported as a symbol. as a binary - it is useless. in the case of building the dll - it should be what it is now. in the case of a binary it should actually be "do nothing" here. ie empty. maybe we need a new macro? like ELM_MAIN or such that does this? ie ifdef windows -> #define it to nothing, if anywherre else #define it to EAPI -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ 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