Error in nmake when compiling c lotus api sample

Hello,

We are trying to compile one of the C notes API samples ( introwin):

C:\notesapi\samples\basic\introwin>nmake /f mswin32.mak /a

But we get the following error:

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01

Copyright (C) Microsoft Corporation. All rights reserved.

cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_X

86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -DNTDDI_VERSION=0x050

00000 -D_WIN32_IE=0x0500 -DWINVER=0x0500 /Zp /DNT -D_MT -MTd INTROWIN.c

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cl.exe

n\cl.EXE"’ : return code ‘0x80’

Stop.

Installed software:

  • Lotus domino 7.0.2FP3

  • Microsoft visual C++ 2010 Express

Operating System: Windows Server 2003 R2

I don’t think there’s any problem with the Microsoft visual c++ installation, because when successufully compiled other codes with it. (none of them from lotus c api)

Thanks in advance,

Sérgio Lopes

Subject: Error in nmake when compiling c lotus api sample

Visual C++ 8 (VC++ 2005) was current when 7.0.2 was released (and I’m pretty sure that VC6 was still the most frequently used environment). Are you sure that VC++ 10 is compatible?

Subject: RE: Error in nmake when compiling c lotus api sample

Thank you Stan. I manage to compile the code using Visual c++ 10. Some environment variables were missing. Thank for your help.