So, I tried working with .o files and used "strings" on all of those. Basically, what I have done is inserted the following right at the bottom of each .c and .h file.
static char *a = "Filename";
But because it is defined as static, those strings don't show up using strings command (in .so as well as the executable). Why? I do not know myself. It works when I do that for dummy files.
When I remove the static keyword,there are linker issues showing redefinitions all over the place.
#warnings was an interesting idea and I tried it out just now. It's successful in the sense that it does print out the warnings along with all the other compiler messages.
But, I cannot make it output to a file so I can analyze it. No, redirection ( make > makelog.txt) is not working.
This is getting really interesting. Any further help will be greatly appreciated.
ThanksIn reply to Re^2: Source files going into perl interpreter during compilation
by buntyshubho
in thread Source files going into perl interpreter during compilation
by buntyshubho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |