It has been a long time since I coded in C/C++ and I can't seem to remember the exact mechanism of linking.
Say, I compiled and linked the source code given at SQLite quickstart guide (C example in Write Programs That Use SQLite) in Linux(Ubuntu) environment:
g++ -o"SQLiteTest" ./sqlitetest.o -lsqlite3
It gives me a nice executable SQLiteTest and I can use it on my system.
But how would it fare when I distribute that code to someone else? Is the libsqlite3.* statically packaged into SQLiteTest? or is it dynamically linked and the recipient of the program need to download the SQLite3 libraries?
Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
[c/c++][linux] Linking With A -l Is Static Or Dynamic?
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users