KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q199519: PRB: Unresolved External on __InitVTableRecords

Article: Q199519
Product(s): Microsoft C Compiler
Version(s): MACINTOSH:2.0,4.0,4.0b
Operating System(s): 
Keyword(s): kberrmsg kbprogramming kbtool kbHWMAC kbVC kbDSupport
Last Modified: 06-FEB-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual C++, Macintosh Cross-Development Addon, versions 2.0, 4.0, 4.0b 
-------------------------------------------------------------------------------

SYMPTOMS
========

An unresolved external link error occurs for the symbol "__InitVTableRecords"
when building a Macintosh ASLM Shared Library.

CAUSE
=====

Failure to specify a DEF file when building a Macintosh ASLM Shared Library
causes an unresolved external link error for the symbol "__InitVTableRecords".

RESOLUTION
==========

A DEF file is required to specify which symbols are to be exported from the
shared library. See "Building a Module-Definition File" on page 268 of the
Visual C++ Porting Applications to the Macintosh guide.

REFERENCES
==========

Macintosh Porting Guide: Building an Apple Shared Library

Additional query words: DLL DEF ASLM

======================================================================
Keywords          : kberrmsg kbprogramming kbtool kbHWMAC kbVC kbDSupport 
Technology        : kbVCsearch kbHWMAC kbOSMAC kbAudDeveloper kbVCXDev200Mac kbVCXDev400Mac kbVCXDev400bMac
Version           : MACINTOSH:2.0,4.0,4.0b
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.

Copyright Microsoft Corporation 1986-2002.