3. Created a new project using File->New->Project and followed the Wizard steps:
Console Application,
C++, Project title=hello, Folder=c:\tmp,
Complier = Microsoft Visual C++ V6,
Create "Debug" configuration: Ouput Dir = bin\Debug, Objects output dir = obj\Debug
Create "Release" configuration: Ouput Dir = bin\Release, Objects output dir = obj\Release
Multi-threaded Dynamic CRT mode
4. Used the "Build" toolbar button to compile and link
The result was that the code compiled (object files were created) but not linked (no .exe created) and the message "Nothing to be done" in the log window following the linker command.
Here's my build log
-------------- Build: Debug in hello ---------------
cl.exe /nologo /W3 /EHsc /Zi /D_DEBUG /MDd /I"C:\Program Files\Microsoft Visual Studio\VC98\ATL\Include" /I"C:\Program Files\Microsoft Visual Studio\VC98\Include" /I"C:\Program Files\Microsoft Visual Studio\VC98\MFC\Include" /c main.cpp /Foobj\Debug\main.obj
main.cpp
link.exe /nologo /LIBPATH:"C:\Program Files\Microsoft Visual Studio\VC98\Lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio\VC98\MFC\Lib" /out:bin\Debug\hello.exe msvcrtd.lib msvcprtd.lib obj\Debug\main.obj /DEBUG
LINK : LNK6004: bin\Debug\hello.exe not found or not built by the last incremental link; performing full link
Output size is 28.08 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
The exe was created in bin\Debug sub-folder and runs under C::B and from CMD window.
Are you running SP6?
Checking NMAKE version seems the best, mine is 6.00.9782.0
C:\Program Files\Microsoft Visual Studio\VC98\Bin>CALL "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"
Setting environment for using Microsoft Visual C++ tools.
C:\Program Files\Microsoft Visual Studio\VC98\Bin>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
C:\Program Files\Microsoft Visual Studio\VC98\Bin>NMAKE.EXE
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.
Tim S