On Sat, 28 Jun 2008 19:03:05 -0500 (CDT), guddu < XXXX@XXXXX.COM >
wrote in comp.lang.c.moderated:
So far, you have posted this question into just about every general
purpose C and C++ programming group on the Internet.
In quite a few of these groups, you have been told two things, in some
cases both by the same respondent in the same reply. Namely:
1. This is a bad idea and you probably should not do it.
2. Neither the C nor C++ language defines the mechanics of libraries,
they are completely defined by the combination of your particular
compiler and operating system. This is especially true when it comes
to dynamically loaded libraries. So there is no C or C++ language
answer to your question, if you want to do this you need to ask in a
group that supports your particular compiler/OS combination to find
I agree quite strongly with the first piece of advice, It also seems
silly to have separate libraries when one of them requires that the
other needs to be loaded, to supply the global object.
Nevertheless, if you insist on doing this, stop multi-posting the
question to every C and C++ language newsgroup you can find. So far
it is off-topic in every one of them where I have seen it.
Instead, post it to a specific group that deals with your specific
compiler/OS combination. Based on the headers in your post,
comp.lang.c.moderated - moderation address: XXXX@XXXXX.COM -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.