Login Page - Create Account

Support Board

Date/Time: Sun, 16 Jun 2019 07:58:17 +0000

SQLite Connexion

Support Request:
[2019-03-12 08:01:57]
Ch4t3 - Posts: 5

I try to connect my study on sql database. I have try MySQL, but so hard since 2 days.

So today, I try to connect a simple SQLite to test. (the least difficult in sql)

So I have add after "sierrachart.h"

#include <stdio.h>
#include <sqlite3.h>

and simple code like this : (connection to database to test step by step with Visual)

sqlite3 *db;
char *zErrMsg = 0;
int rc;

rc = sqlite3_open("test.db", &db);


And i have this message when I build :

1>MyCustomStudy.obj : error LNK2019: unresolved external symbol _sqlite3_close referenced in function _scsf_TemplateFunction
1>MyCustomStudy.obj : error LNK2019: unresolved external symbol _sqlite3_open referenced in function _scsf_TemplateFunction

Thank you for your help :)

PS : sqlite3.h in C:\SierraChart\ACS_Source\ and C:\SierraChart\ACS_Source\ In projet property C/C++ General -> Additional Include directories
[2019-03-12 17:27:47]
Sierra Chart Engineering - Posts: 72845
You have to resolve this. We cannot help with this. Clearly that function is not being found.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2019-03-12 20:48:25]
Ch4t3 - Posts: 5
Ok, Thanks you. I have find solution :)

I have forget to create sqlite3.lib (+ add in projet->linker->addtional...)

To post a message in this thread, you need to login with your Sierra Chart account:


Login Page - Create Account