From: "Boris V. Guzhov" <borg@int.spb.ru>
To: <ecos-discuss@sourceware.cygnus.com>
Subject: [ECOS] Static constuctors
Date: Fri, 06 Oct 2000 09:39:00 -0000 [thread overview]
Message-ID: <015401c02fb2$106bd380$7601a8c0@borg> (raw)
Hi All!
My host - RedHat Linux 6.2
My target - pc.
I work with latest eCos version from anoncvs.
I have some problems with elix template.
There is a simple test (test.cc):
// -------------
class A
{
public: A() { printf("A: %d\n", pthread_self());}
};
static A a;
int main(void)
{
printf("main: %d\n", pthread_self());
return 0;
}
// --------------
In Linux (not ecos) environment it prints:
A: 1024
main: 1024
And I see that static constructor is invoked in main() thread context.
In linux synthetic environment (linux elix template) there is prints:
A: 0
main: 1024
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_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?
Thanks in advance.
--
Boris Guzhov,
St.Petersburg, Russia
next reply other threads:[~2000-10-06 9:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-06 9:39 Boris V. Guzhov [this message]
2000-10-11 11:05 ` Jonathan Larmour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='015401c02fb2$106bd380$7601a8c0@borg' \
--to=borg@int.spb.ru \
--cc=ecos-discuss@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).