problem with DAO in VC 5.0 
Author Message
 problem with DAO in VC 5.0

Hello,

I've the following problem in Visual C++ 5.0:

My source file is:

"#include <dbdao.h>
#include <dbdaoerr.h>

CdbDBEngine        dbeng;
CdbDatabase        db;
CdbRecordset    rstMio, rstTemp;
int                nRS, nFld;

void main()
{
db = dbeng.OpenDatabase(_T("pippo.mdb"));
rstMio = db.OpenRecordset("Tabella1", dbOpenSnapshot);
...
db.Close();

Quote:
};

"

When I compile the sorce I haven't problem but when I make the executable
the linker give me these error messages:

   Creating library Debug/Prova2.lib and object Debug/Prova2.exp
Prova2.obj : error LNK2001: unresolved external symbol "public: __thiscall
CdbDBEngine::CdbDBEngine(int,int,char const *,char const *,char const

Prova2.obj : error LNK2001: unresolved external symbol "public: __thiscall

Prova2.obj : error LNK2001: unresolved external symbol "public: __thiscall

Prova2.obj : error LNK2001: unresolved external symbol "public: void

Prova2.obj : error LNK2001: unresolved external symbol "public: class
COleVariant  __thiscall CdbField::GetValue(void)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbField  __thiscall CdbFields::operator[](char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbRecordset & __thiscall CdbRecordset::operator=(class CdbRecordset const

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbRecordset  __thiscall CdbDatabase::OpenRecordset(char const
*,long,long,long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbDatabase & __thiscall CdbDatabase::operator=(class CdbDatabase const &)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbDatabase  __thiscall CdbDBEngine::OpenDatabase(char const *,long,int,char

Prova2.obj : error LNK2001: unresolved external symbol "public: __thiscall

Prova2.obj : error LNK2001: unresolved external symbol "public: struct
IUnknown * __thiscall CdbOleObject::GetInterface(int,int)const "

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall CdbOleObject::OnInterfaceChange(void)"

Prova2.obj : error LNK2001: unresolved external symbol "public: __thiscall

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbOleObject & __thiscall CdbOleObject::operator=(class CdbOleObject &)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall CdbStaticCollection::Refresh(void)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall CdbStaticCollection::Delete(char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall CdbStaticCollection::ObAppend(class CdbObject &)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual long
__thiscall CdbStaticCollection::GetCount(void)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual


Prova2.obj : error LNK2001: unresolved external symbol "public: virtual
class CdbObject  __thiscall CdbStaticCollection::ObItem(char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall CdbDynamicCollection::Refresh(void)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall CdbDynamicCollection::Delete(char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual void
__thiscall CdbDynamicCollection::ObAppend(class CdbObject &)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual long
__thiscall CdbDynamicCollection::GetCount(void)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual
class CdbObject  __thiscall CdbDynamicCollection::ObItem(long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual
class CdbObject  __thiscall CdbDynamicCollection::ObItem(char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual void

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual long
__thiscall CdbConnections::GetCount(void)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual
class CdbObject  __thiscall CdbIndexFields::ObItem(long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: virtual
class CdbObject  __thiscall CdbIndexFields::ObItem(char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
COleVariant  __thiscall CdbRecordset::GetField(char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: void
__thiscall CdbRecordset::SetField(char const *,struct tagVARIANT *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: __thiscall

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbWorkspace  __thiscall CdbWorkspaces::operator[](long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbWorkspace  __thiscall CdbWorkspaces::operator[](char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbDatabase  __thiscall CdbDatabases::operator[](long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbDatabase  __thiscall CdbDatabases::operator[](char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbTableDef  __thiscall CdbTableDefs::operator[](long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbTableDef  __thiscall CdbTableDefs::operator[](char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbQueryDef  __thiscall CdbQueryDefs::operator[](long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbQueryDef  __thiscall CdbQueryDefs::operator[](char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbField  __thiscall CdbFields::operator[](long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbGroup  __thiscall CdbGroups::operator[](long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbGroup  __thiscall CdbGroups::operator[](char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbUser  __thiscall CdbUsers::operator[](long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbUser  __thiscall CdbUsers::operator[](char const *)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbDocument  __thiscall CdbDocuments::operator[](long)"

Prova2.obj : error LNK2001: unresolved external symbol "public: class
CdbDocument  __thiscall CdbDocuments::operator[](char const *)"

Debug/Prova2.exe : fatal error LNK1120: 50 unresolved externals
Error executing link.exe.

Prova2.exe - 51 error(s), 0 warning(s)

Thanx for answer!

Marcello

PS: I've installed the daosdk 3.5 and in directory section of the linker
I've specifed the right position of dao headers and libraries



Sun, 02 Dec 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Problem calling DLL writen in VC 5.0 from VB 5.0

2. Problem calling DLL writen in VC 5.0 from VB 5.0

3. Problem calling DLL writen in VC 5.0 from VB 5.0

4. Problem calling DLL writen in VC 5.0 from VB 5.0

5. looking for financial and statistical libaries (e.g.time series) - VB 5.0 or VC 5.0

6. Is a VB 5.0 ActiveX DLL Compatible with VC 5.0

7. Floating Point Speed - Comparison of VB 5.0, Delphi 3.0, and VC 5.0

8. VB 5.0 DAO 3.5 FoxPro 2.5 Problem

9. DAO ODBC Direct Problems with CA OpenIngres / VB 5.0

10. Problem with DAO CreateTabelDef connecting a DBase 5.0 file

11. connect vc++ & msaccess 2000/2002 thru dao

 

 
Powered by phpBB® Forum Software