Microsoft KB Archive/145822

= DOC: Creating Import Libraries for PowerPC Shared Libraries =

Article ID: 145822

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual C++ 4.0 Cross Development Edition for Macintosh

-



This article was previously published under Q145822



SUMMARY
The documentation for creating an import library for Apple Code Fragment shared libraries in "Visual C++ Porting Applications to the Macintosh," Chapter 19 (Macintosh Shared Libraries) under "Code Fragment Manager Shared Libraries" contain various documentation errors. This article gives the correct documentation.



MORE INFORMATION
The steps to create an import library should read as follows:

  Use the MFILE COPY command to copy the code fragment library file from the Macintosh to your computer. MFILE COPY ":MACINTOSH HD:MYLIB" MYLIB   Use the dumpbin utility to place all exported functions and variables into a file called MY.EXPORTS. DUMPBIN /EXPORTS MYLIB > MY.EXPORTS  Edit MY.EXPORTS to get just the names of the exported symbols.  Create a .DEF file (MYLIB.DEF) that contains the following lines: LIBRARY MYLIBNAME EXPORTS Here MYLIBNAME is the fragment name from the 'cfrg' resource in the Macintosh shared library, and the list of export names in MY.EXPORTS is placed after the EXPORTS keyword.   Use the LIB utility to create MYLIBNAME.LIB. LIB /MACHINE:MPPC /DEF:MYLIB.DEF 

Additional query words: mpw2lib dll def afxdll mac cfrg cfm vcmac

Keywords: kbbug kbdocerr KB145822

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.