Solved

ADO Linking problem!!

Posted on 1998-10-29
1
640 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
Comment Utility
Hello,
You must include in your project the lib adoid.lib for that work
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

15 Experts available now in Live!

Get 1:1 Help Now