Vittal <vs*********@yahoo.com> scribbled the following:
Here is what I see in the preprocessor output.
extern int __sigismember (__const __sigset_t *__set, int __sig) {
unsigned long int __mask = (((unsigned long int)
1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned
long int __word = (((__sig) - 1) / (8 * sizeo
f (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 :
0; }
Actually this piece of code comes from <socket.h> header file and also
the same header file has the DEFINATION of __sigismember function.
Hmm, I spot several things which might be problems, but could be just
oddities, or a sign of cluelessness on my part.
First, why is that function __sigismember labelled as extern when code
is supplied for it?
Second, you say it comes from a header file. Are you sure this header
file is included anywhere? If it's not, then no wonder it's not going
to the object file. But since you say it comes from preprocessor
output, not input, I am fairly sure it is being included. Just checking
though.
And lastly, as I said before, it just might be that your linker does
not use symbol names in object files at all.
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
|
http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"Life without ostriches is like coffee with milk."
- Mika P. Nieminen