public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* Accessing static variable from outside
@ 2007-06-16  2:08 Rajat Jain
  2007-06-16  3:09 ` Adrian Bunk
  2007-06-16 16:36 ` tejas khatiwala
  0 siblings, 2 replies; 4+ messages in thread
From: Rajat Jain @ 2007-06-16  2:08 UTC (permalink / raw)
  To: Linux Newbies, newbie

Hi,

I understand that this is off-topic, but still if some one has any ideas ...

I have a global variable that is defined static in an object file (say
1.o). Now I want to be able to get the value of this variable in
ANOTHER object file (say 2.o) without changing the source of 1.c.

Any ideas, anyone? I know that as per C, this is not possible. But may
be some clever hack?

Thanks,

Rajat
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-17 10:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-16  2:08 Accessing static variable from outside Rajat Jain
2007-06-16  3:09 ` Adrian Bunk
2007-06-16 16:36 ` tejas khatiwala
2007-06-17 10:20   ` Erik Mouw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox