Hi all,
Thanks for haveing this group. I am in search of a solution to
Q. Thought of geeting the same from experts.
I have c files to generate shared libraries (not relating to
linux,unix,windows) and would like to share data with other libraries.
For Eg:.
Fileone.c --------gives me Fileone.so input to this is a text file
Country.txt (set of integers)
Filetwo.c ---------gives me Filetwo.so input to this is a text file
Country.txt (set of integers)
Now both Fileone.so and Filetwo.so are reads Country.txt...... My
question "Is is a way by which i can avoid reading of Country.txt
second time?"
I used a common header.h file which had static int *bar. But this did
not work.
Thanks in advance
Lb