Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when I am tring to connect sqlite3 to my project mfc DLL which is import to c#. There comes error' one or more multiply defined symbols found' how to solve this. first I include sqlite3.h and add sqlite3.lib,create a database using sqliteBrowser in my project folder to my project . Where Dcode is my mfc Dll project and project path Dcode.dll F:\project\ Project\Dcode\Dcode\ then write code

sqlite3 *conn; //connection object

const char *dbname="F:\\project\\ Project \\db.s3db";//destination for DB

int s=sqlite3_open(dbname,&conn);//allocating memory to the sqlite3 object using sqlite3_open constructors

if(s==SQLITE_OK)
{
std::cout<<"Opened database successfully\n";
}
then errors Error 115 error LNK1169: one or more multiply defined symbols found
Posted
Updated 8-Apr-14 20:18pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900