Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 15:12:11 +0000



Post From: SQLite Connexion

[2019-03-12 08:01:57]
Ch4t3 - Posts: 5
Dear,

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);

sqlite3_close(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