Microsoft KB Archive/165430

{|
 * width="100%"|

PRB: _IID_ISequentialStream Link Error w/ OLE DB and Visual C+
'Article ID: Q165430

Creation Date: 19-MAR-1997

Revision Date: 20-MAR-1997' The information in this article applies to:


 * Microsoft OLE DB, version 1.1
 * Microsoft Visual C++, version 5.0

SYMPTOMS

When an OLE DB application uses the IID_ISequentialStream interface ID and is compiled under Visual C++ version 5.0, the OLE DB application may get the following error:

oledb.lib : error LNK2005: _IID_ISequentialStream already defined in  uuid.lib(objidl_i_guid16.obj) CAUSE

OLE DB libraries include IID_ISequentialStream definition because IID_ISequentialStream was not defined in the Uuid.lib file shipped with Visual C++ version 4.2. The IID_ISequentialStream definition is now included in the Uuib.lib file shipped with Visual C++ version 5.0.

WORKAROUND

In the project Link setting, specify Oledb.lib or Oledbd.lib before Uuid.lib for the Object/Library modules setting.
 * }

-

 Additional query words: viper

Keywords : kbprg SSrvProg kbbug1.10

Version : 1.1 5.0

Platform : WINDOWS

Issue type : kbprb

"THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY." '' ©1997 Microsoft Corporation. All rights reserved. Legal Notices.

''