You are missing the pthread and the dynamic load libraries required by SQLite in the link phase of the second command. Add -lpthread and -ldl
You are missing the pthread and the dynamic load libraries required by SQLite in the link phase of the second command. Add -lpthread and -ldl