Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22070

nm symbol output t vs T in a shared so library

$
0
0

I have added a new function (fuse_lowlevel_notify_inval_directory) in user space fuse library.The compilation and creation of libfuse.so is finished without error.But when my application tries to use this new function, the linker is throwing error: undefined reference to `fuse_lowlevel_notify_inval_directory'collect2: ld returned 1 exit status

When I checked with nm

nm ../libfuse.so | grep inval00000000000154ed T fuse_invalidate**000000000001e142 t fuse_lowlevel_notify_inval_directory**000000000001e26c T fuse_lowlevel_notify_inval_entry000000000001e1cb T fuse_lowlevel_notify_inval_inode

T/t means the symbol is present in text section. if uppercase, the symbol is global (external). I suspect this is the issue. The new added function is showing lowercase t while other older functions are having upper case T. Any idea about what I might be doing wrong?


Viewing all articles
Browse latest Browse all 22070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>