Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ADO Linking problem!!

Posted on 1998-10-29
1
Medium Priority
?
694 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 40 total points
ID: 1324016
Hello,
You must include in your project the lib adoid.lib for that work
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

876 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