Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ADO Linking problem!!

Posted on 1998-10-29
1
Medium Priority
?
674 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

705 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