-1

The source sqlite3.c has very few if at all, _declspec(dllexport) functions thus building it to a DLL in Windows produces an empty DLL!

My cmd line is:

cl sqlite3.c -link -dll -out:sqlite3.dll

where is the export file? How do I export the functions to the DLL?

Regards, Juan

0

1 Answer 1

0

Just define the SQLITE_API preprocessing symbol with the value __declspec(dllexport), by adding the appropriate option to the command line (before the other options):

cl sqlite3.c -DSQLITE_API=__declspec(dllexport) -link -dll -out:sqlite3.dll

2
  • Thank you so much!!
    – Juan Dent
    Feb 15, 2022 at 22:40
  • How do I mark this topic as answered?
    – Juan Dent
    Feb 15, 2022 at 22:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.