--- Quote Start ---
originally posted by david_cai@Aug 11 2006, 07:01 AM
could you kindly tell me how can you find the answer?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17538)
--- quote end ---
--- Quote End ---
Hmm, let's see ...
1. I created a sample project to see if I would get the same problem.
2. I looked in the objdump file if the symbol was indeed defined (it was)
(If you want to know anything about an elf (file format used by gcc) executable/object file look at it with objdump)
3. I googled 'heap_end'. a promising hit 'told' me that heap_end was defined by the c-library.
4. I searched the c-lib sources in my local filesystem for 'heap_end'
(I didn't use the explorer for that. I did use a program that searches the content of all files for 'heap_end').
5. Voilá, file found => static definition.
6. I know that static symbols are visible only in the current file.
You know, experience is difficult to explain...
Wolfgang