Home » Community » Newbie corner » Connecting to PostgreSQL DB without reference file
Connecting to PostgreSQL DB without reference file [message #38311] |
Sun, 09 December 2012 20:41  |
DOTMPP
Messages: 4 Registered: December 2012
|
Junior Member |
|
|
Hi, I can connect to the test PostgreSQL DB using the reference package, but I don't know how to do it on my own using my own DB.
For example,
Quote: | protected:
PostgreSQLSession m_session;
|
I have no idea what type this is. I tried including all the things the reference file includes, but it still doesn't work.
It gives me "20 unresolved externals" error.
Quote: | error LNK2019: unresolved external symbol "public: virtual __thiscall Upp::SqlSession::~SqlSession(void)" (??1SqlSession@Up
p@@UAE@XZ" target="_blank">>@XZ) referenced in function __unwindfunclet$??0PostgreSQLSession@Upp@@QAE@XZ" target="_blank">>@XZ$0
DataBaseConnection.obj : error LNK2019: unresolved external symbol "public: __thiscall Upp::SqlSession::SqlSession(void)" (??0SqlSession@Upp@@QAE@XZ" target="_blank">>@XZ
) referenced in function "public: __thiscall Upp::PostgreSQLSession::PostgreSQLSession(void)" (??0PostgreSQLSession@Upp@@QAE@XZ" target="_blank">>@XZ)
DataBaseConnection.obj : error LNK2001: unresolved external symbol "protected: virtual class Upp::SqlConnection * __thiscall Upp::PostgreSQLSession:
:CreateConnection(void)" (?CreateConnection@PostgreSQLSession@Upp" target="_blank">>@Upp@@MAEPAVSqlConnection@2" target="_blank">>@2@XZ" target="_blank">>@XZ)
DataBaseConnection.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Upp::PostgreSQLSession::Begin(void)" (?Begin@Pos
tgreSQLSession@Upp@@UAEXXZ)
|
etc...
[Updated on: Sun, 09 December 2012 20:47] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Apr 29 19:54:36 CEST 2025
Total time taken to generate the page: 0.00936 seconds
|