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

GCC Linking "undefined reference" with third part Shared Object (.so) file

$
0
0

Banging my head against a wall with making a quick proof of concept app which links to a third party .so file.

I've produces a simple C file which calls a simple function in the .so file, it includes the header file also supplied by the vendor. Linking produces the following errors:

/usr/local/lib/xxx.so: undefined reference to `sprintf_s'
/usr/local/lib/xxx.so: undefined reference to `sendWCmdThread'
/usr/local/lib/xxx.so: undefined reference to `pthread_create'
/usr/local/lib/xxx.so: undefined reference to `pthread_cancel'

I can handle the pthread issues (-pthread option) but I'm at a loss for the other two errors. Expecially as Google provides zero results for 'sendWCmdThread'

Anyone help?


Viewing all articles
Browse latest Browse all 22075

Trending Articles



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