Solved

ADO Linking problem!!

Posted on 1998-10-29
1
641 Views
Last Modified: 2013-11-20
#include <afxdisp.h>
#include <adoid.h>
#include <adoint.h>

When I included the above files and compiled my project in VC++ 5.0 with OLEDB SDK, following linking error occured:

ADO_ExerciseDlg.obj : error LNK2001: unresolved external symbol _CLSID_CADORecordset
ADO_ExerciseDlg.obj : error LNK2001: unresolved external symbol _IID_IADORecordset
ADO_ExerciseDlg.obj : error LNK2001: unresolved external symbol _CLSID_CADOConnection
ADO_ExerciseDlg.obj : error LNK2001: unresolved external symbol _IID_IADOConnection
Debug/ADO_Exercise.exe : fatal error LNK1120: 4 unresolved externals

After that, I also included objbase.h and initguid.h header files. Now difference linking problem occured:

error LNK2005: _IID_EnumMarshalOptions already defined in ADO_Exercise.obj
ADO_ExerciseDlg.obj : error LNK2005: _IID_EnumSchema already defined in ADO_Exercise.obj
ADO_ExerciseDlg.obj : error LNK2005: _IID_EnumObjectState already defined in ADO_Exercise.obj
.
.
etc
77 linking errors

I have checked the link tab in Project settings and I put NOTHING in it!

Anyone know why????  
0
Comment
Question by:sqlserver
1 Comment
 

Accepted Solution

by:
f4817 earned 20 total points
ID: 1324016
Hello,
You must include in your project the lib adoid.lib for that work
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now