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

Using gcc to compile a c++ program for linux linking static and dynamic libraries

$
0
0

I'm trying to compile a program using a makefile and gcc as compiler.

I must link my program with static and dynamic libraries. I've linked the static libraries as follows:the name of my static libraries are libverifp.a and libtls_64.a, then I wrote -lverifp and -ltls_64.

Besides, I must link a dynamic library named libverifp.so and I do not know how link it.

The error message that appears is:

/usr/bin/ld: warning: libtls_64.so, needed by /mnt/f/code/ext/verifp_1.40/bin/linux/x64/libverifp.so, not found (try using -rpath or -rpath-link)

I understand I must link libverifp.so but I do not know how can I do.


Viewing all articles
Browse latest Browse all 22235

Trending Articles



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