Using Microsoft C++ 6.0 compiler with Visual LANSA Version 11

Date: 19 May 2005
Product/Release: Visual LANSA V11
Abstract: How to correct issues with Visual LANSA 11.0 when compiling on a system with Microsoft Visual C++ 6.0.
Submitted By: LANSA Technical Support

In some cases, after installing Visual LANSA V11 on a system that already has Microsoft Visual C++ 6.0 installed, LANSA components may not compile successfully.

This can occur if Microsoft Visual C++ 6.0 was not setup to enable the build tools to run from the command line (the necessary environment variables were not created or modified).

If this is the case, you need to manually establish the environment variables, so that Visual LANSA can locate and correctly execute the Microsoft compiler.

To do this, first locate the batch file vcvars32.bat, usually found in the following location:

C:\Program Files\Microsoft Visual Studio\VC98\Bin

Open vcvars32.bat using a text editor such as notepad.exe and locate the lines that set the PATH, INCLUDE and LIB environment variables. You will need their values below – do not modify this file.

Now choose Start -> Settings -> Control Panel -> System -> and select the Advanced tab, now click the Environment Variables button. Modify or create the PATH, INCLUDE or LIB system environment variables to match the values you obtained from vcvars32.bat. (To do this, you might need to create or expand some of the embedded system variables, such as %MSDevDir%).

Note: Microsoft support for Visual C++ 6.0 is scheduled to end on 30 September, 2005. After this date, Microsoft Visual C++ 6.0 will not be a supported compiler for Visual LANSA. Users should plan to upgrade to the latest Microsoft Visual C++ compiler for this date.