about ignoring "#pragma weak symbol"

Erik Leunissen e.leunissen@hccnet.nl
Sun Aug 12 23:37:00 GMT 2007


Erik Leunissen wrote:

> ...
> - Why would gcc (or the preprocesor) ignore this pragma?
> - What do I need to do to make the pragma not being ignored?
> - Why would 4.1.2 ignore it, but 3.3.0 let it pass?
> ...

To answer my own question (at least partially):

Moving the pragma directive up front, made the warning go away. 
Therefore, I believe this is an issue regarding the placement of this 
statement relative to the first use of the symbol.

No need to respond anymore, unless you believe my logic regarding the 
relative placement is flawed.

Thanks,

Erik Leunissen



More information about the Gcc-help mailing list