Hi,

I wonder if someone could point out my error.  I've defined a function, nothing 
special, takes a couple of args and returns a pointer to a structure.

The function is not declared with any special keywords.  It is not static.

Yet, when compiled with gcc on Solaris and a .so target is built with libtool, 
the function is reported by nm as LOCAL, instead of GLOBAL. Why? Other 
functions in the project come out as GLOBAL. If I run nm against the .o file in 
.libs the function is GLOBAL. So the linker is obviously deciding when building 
the .so that this particular function must be LOCAL.

As I'm not using the static keyword, I don't understand why this could be 
happening.  What am I missing?

Thanks,
Mark.

Sent from my HTC
_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool

Reply via email to