Search code examples
c++visual-studioputtypscp

C++ Error RC2104 trying to compile PuTTY-PSCP (for Windows) on Visual Studio 6.0


I was about to use PuTTY Development source code for Windows to create my own client application (found here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) but as I tried to compile the PSCP project (SCP Client), I got the following error :

C:\work\2015\Putty\windows\version.rc2 (18): error RC2104 : undefined keyword or key name: BINARY_VERSION

I've been going through the various posts involving this error but didn't find anything working :

error RC2104: undefined keyword or key name: DS_SETFONT :

On this post I noticed that the version of MSVC was brought up so I figured maybe something has to be done to get PuTTY to work on VC 6.0 ?

Also I tried to add #include <windows.h> in both version.rc2 (version.rc2 is used for inclusion in all .rc files) and pscp.rc, none worked.

I'll be quick to answer if you need any information (project properties, source code...)

USING Visual Studio 6.0 with SP6 on Windows 8.1


Solution

  • Probably, wrong version.h is seen. Correctly, the file version.h in the project folder should be seen.

    Please try to modify version.rc2:

    #include "version.h"
    

    to

    #include "..\\..\\..\\version.h"
    

    At least, resource compiler will end successfully.