PRB: C2061 Errors When Compiling for Macintosh TargetLast reviewed: November 19, 1995Article ID: Q139603 |
The information in this article applies to:
- Microsoft Visual C++ 2.0 Cross-Development Edition for Macintosh
SYMPTOMSWhen you compile a project for a Macintosh target, the following error messages occur:
C:\MSVC20\MFC\INCLUDE\afxwin.h(1908) : error C2061: syntax error : identifier 'LPSCROLLINFO' C:\MSVC20\MFC\INCLUDE\afxwin.h(1910) : error C2061: syntax error : identifier 'LPSCROLLINFO' C:\MSVC20\MFC\INCLUDE\afxwin1.inl(20) : fatal error C1903: unable to recover from previous error(s); stopping compilation CAUSEThe identifier LPSCROLLINFO is not defined in the Afxwin.h file in version 3.2 of the Microsoft Foundation classes.
RESOLUTIONRun the provided Setupmfc.exe program, and add a path for the MFC 3.0 include directory to the INCLUDE environment variable in the development environment. More details follow. The Visual C++ 2.2 Setup program installs a program called Setupmfc.exe in the Msvc20\Bin directory and installs an "MFC 3.0 Source Setup" icon for it in the Microsoft Visual C++ 2.0 program group. To see the icon, you need to have the Macintosh add-on installed before you install Visual C++ 2.2. Here are the necessary steps:
STATUSThis behavior is by design.
|
Additional reference words: 2.20 2.2 2.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |