Click here to Skip to main content
15,884,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ and Sqlite connection Pin
Cedric Moonen9-Jan-09 4:07
Cedric Moonen9-Jan-09 4:07 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson9-Jan-09 4:16
professionalStuart Dootson9-Jan-09 4:16 
JokeRe: C++ and Sqlite connection Pin
6Qing889-Jan-09 16:58
6Qing889-Jan-09 16:58 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson9-Jan-09 22:16
professionalStuart Dootson9-Jan-09 22:16 
AnswerRe: C++ and Sqlite connection Pin
Stuart Dootson9-Jan-09 4:03
professionalStuart Dootson9-Jan-09 4:03 
GeneralRe: C++ and Sqlite connection Pin
vanishaa9-Jan-09 18:54
vanishaa9-Jan-09 18:54 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson9-Jan-09 22:19
professionalStuart Dootson9-Jan-09 22:19 
GeneralRe: C++ and Sqlite connection Pin
vanishaa10-Jan-09 1:32
vanishaa10-Jan-09 1:32 
owh...i just noticed..the last parameter don't require quotes. But the error message is way to many after removing the quotes now.


// sparta1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "sqlite3.h"
#include <iostream>
#include "SQLAPI.h"
//#include <stdio.h>
//#include "Sl3API.h"
#pragma comment (lib,"sqlite3.lib")



int main(int argc, _TCHAR* argv[])

{

SAConnection con; //create connection object
SACommand cmd; // create command object
//&SAConnection::setClient;



con.setClient(SA_SQLite_Client);

//void Connect(const SAString &sDBString, const SAString &sUserID, const SAString &sPasswords,SAClient_t eSAClient);


con.Connect("WORM.sqlite", "1234", "1234",SA_SQLite_Client);
cmd.setConnection(&con);


}

error message:

1>------ Build started: Project: sparta1, Configuration: Debug Win32 ------
1>Compiling...
1>sparta1.cpp
1>Linking...
1> Creating library C:\Users\Vani\Documents\Visual Studio 2005\Projects\sparta1\Debug\sparta1.lib and object C:\Users\Vani\Documents\Visual Studio 2005\Projects\sparta1\Debug\sparta1.exp
1>sparta1.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall SAConnection::~SAConnection(void)" (??1SAConnection@@UAE@XZ) referenced in function _main
1>sparta1.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall SACommand::~SACommand(void)" (??1SACommand@@UAE@XZ) referenced in function _main
1>sparta1.obj : error LNK2019: unresolved external symbol "public: void __thiscall SACommand::setConnection(class SAConnection *)" (?setConnection@SACommand@@QAEXPAVSAConnection@@@Z) referenced in function _main
1>sparta1.obj : error LNK2019: unresolved external symbol "public: __thiscall SAString::~SAString(void)" (??1SAString@@QAE@XZ) referenced in function _main
1>sparta1.obj : error LNK2019: unresolved external symbol "public: void __thiscall SAConnection::Connect(class SAString const &,class SAString const &,class SAString const &,enum SAClient_t,void (__cdecl*)(class SAConnection &,enum SAConnectionHandlerType_t))" (?Connect@SAConnection@@QAEXABVSAString@@00W4SAClient_t@@P6AXAAV1@W4SAConnectionHandlerType_t@@@Z@Z) referenced in function _main
1>sparta1.obj : error LNK2019: unresolved external symbol "public: __thiscall SAString::SAString(char const *)" (??0SAString@@QAE@PBD@Z) referenced in function _main
1>sparta1.obj : error LNK2019: unresolved external symbol "public: void __thiscall SAConnection::setClient(enum SAClient_t)" (?setClient@SAConnection@@QAEXW4SAClient_t@@@Z) referenced in function _main
1>sparta1.obj : error LNK2019: unresolved external symbol "public: __thiscall SACommand::SACommand(void)" (??0SACommand@@QAE@XZ) referenced in function _main
1>sparta1.obj : error LNK2019: unresolved external symbol "public: __thiscall SAConnection::SAConnection(void)" (??0SAConnection@@QAE@XZ) referenced in function _main
1>C:\Users\Vani\Documents\Visual Studio 2005\Projects\sparta1\Debug\sparta1.exe : fatal error LNK1120: 9 unresolved externals
1>Build log was saved at "file://c:\Users\Vani\Documents\Visual Studio 2005\Projects\sparta1\sparta1\Debug\BuildLog.htm"
1>sparta1 - 10 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson10-Jan-09 1:57
professionalStuart Dootson10-Jan-09 1:57 
GeneralRe: C++ and Sqlite connection Pin
vanishaa10-Jan-09 2:19
vanishaa10-Jan-09 2:19 
GeneralRe: C++ and Sqlite connection Pin
vanishaa10-Jan-09 2:46
vanishaa10-Jan-09 2:46 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson10-Jan-09 3:20
professionalStuart Dootson10-Jan-09 3:20 
GeneralRe: C++ and Sqlite connection Pin
vanishaa10-Jan-09 4:03
vanishaa10-Jan-09 4:03 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson10-Jan-09 5:33
professionalStuart Dootson10-Jan-09 5:33 
Questioncommand line Pin
Russell'9-Jan-09 2:37
Russell'9-Jan-09 2:37 
AnswerRe: command line Pin
David Crow9-Jan-09 3:09
David Crow9-Jan-09 3:09 
GeneralRe: command line Pin
Russell'9-Jan-09 4:53
Russell'9-Jan-09 4:53 
QuestionPossible violation in typedefs Pin
6Qing889-Jan-09 2:05
6Qing889-Jan-09 2:05 
QuestionRe: Possible violation in typedefs Pin
CPallini9-Jan-09 2:18
mveCPallini9-Jan-09 2:18 
AnswerRe: Possible violation in typedefs Pin
6Qing889-Jan-09 3:01
6Qing889-Jan-09 3:01 
AnswerRe: Possible violation in typedefs Pin
Stuart Dootson9-Jan-09 2:25
professionalStuart Dootson9-Jan-09 2:25 
GeneralRe: Possible violation in typedefs Pin
6Qing889-Jan-09 3:06
6Qing889-Jan-09 3:06 
GeneralRe: Possible violation in typedefs Pin
Luc Pattyn9-Jan-09 2:44
sitebuilderLuc Pattyn9-Jan-09 2:44 
Questionurgrntly required Pin
kir_MFC9-Jan-09 2:04
kir_MFC9-Jan-09 2:04 
QuestionRe: urgrntly required Pin
CPallini9-Jan-09 2:11
mveCPallini9-Jan-09 2:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.