Solved

ADO Linking problem!!

Posted on 1998-10-29
1
646 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 35
wordcount challenge 11 129
Change to event 1 117
Capture logon name 13 86
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

791 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