[ECOS] Static constuctors
Jonathan Larmour
jlarmour@redhat.com
Wed Oct 11 11:05:00 GMT 2000
"Boris V. Guzhov" wrote:
> But I need to invoke static constructors in main() thread context.
>
> Then I tried to make the following:
> - I eddited ecos.ecc file:
> CYGSEM_INVOKE_DEFAULT_STATIC_CONSTRUCTORS: user_value 1
CYGSEM_INVOKE_DEFAULT_STATIC_CONSTRUCTORS is indeed what you are looking
for here.
> CYGSEM_LIBC_STARTUP_MAIN_THREAD: user_value 1
> - "ecosconfig resolve" prints:
> "C CYGPKG_LIBC_STARTUP, "requires" constraint not satisfied:
> CYGINT_LIBC_STARTUP_CONTEXT == 1"
>
> And I cannot run "ecosconfig tree".
>
> What's wrong?
It's an oversight in the CDL. For now just edit
language/c/libc/startup/current/cdl/startup.cdl and remove the "requires
CYGSEM_LIBC_STARTUP_MAIN_THREAD" line. I'll fix it properly in the sources
here.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault
More information about the Ecos-discuss
mailing list