What does error CTC2114 mean?

I am using the Visual Studio SDK with Visual Studio 2005 Professional.

The following problem occurs with both Oct and Dec versions of the SDK.

The following also occurs when trying to compile any sample project that uses CTC.

When I try to build a sample project the output is as follows:

------ Build started: Project: MenuAndCommands, Configuration: Debug Any CPU ------

d:\vssdk\2005.12\VisualStudioIntegration\Tools\bin\ctc.exe CtcComponents\PkgCmd.ctc obj\Debug\PkgCmd.cto /I"d:\vssdk\2005.12\VisualStudioIntegration\Common\inc" /I"d:\vssdk\2005.12\VisualStudioIntegration\Common\inc\office10"

CTC : fatal error CTC2114: Error executing pre-processor

CTC : fatal error CTC2114: Error executing pre-processor

Done building project "MenuAndCommands.csproj" -- FAILED.

========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

When I remove the CtcFile element from the MenuAndCommands.csproj, the build succeeds. (obviously there is a problem in the CTC step)

When I execute the command from the command line I get:

D:\vssdk\2005.12\VisualStudioIntegration\Samples\IDE\CSharp\Reference.MenuAndCommands>d:\vssdk\2005.12\VisualStudioIntegration\Tools\bin\ctc.exe CtcCompon ents\PkgCmd.ctc obj\Debug\PkgCmd.cto /I"d:\vssdk\2005.12\VisualStudioIntegration\Common\inc" /I"d:\vssdk\2005.12\VisualStudioIntegration\Common\inc\office 10" -v100

Microsoft (R) Shell Command Table Compiler Version 2.20.50725

-- Begin Compile -- 01/06/2006 10:09:08.960

Generating CTC Symbols file: D:\vssdk\2005.12\VisualStudioIntegration\Samples\IDE\CSharp\Reference.MenuAndCommands\obj\Debug\PkgCmd.ctsym

-- ParseCTCSymbols Begin -- 01/06/2006 10:09:08.960

-- ParseCTCSymbols End Elapsed 00:00:00.016

-- Preproces Symbols Begin -- 01/06/2006 10:09:08.976 PkgCmd.ctsym_1

-- Preproces Symbols End Elapsed 00:00:00.078

-- Begin Preprocess CTC -- 01/06/2006 10:09:09.054 PkgCmd.ctc

-- End Preprocess CTC Elapsed 00:00:00.078

-- Begin CTC Compile -- 01/06/2006 10:09:09.132

Generating CTC CommandTable file: D:\vssdk\2005.12\VisualStudioIntegration\Samples\IDE\CSharp\Reference.MenuAndCommands\obj\Debug\PkgCmd.cto

-- End CTC Compile Elapsed 00:00:00.000

-- Finished Compile Elapsed 00:00:00.172

It seems to work manually from the command line, but not from the build process.

What does error CTC2114 mean

Thanks in advance,

Andrew.



Answer this question

What does error CTC2114 mean?

  • AsadAbbasi

    The CTC compiler uses the C++ compiler front end (CL.EXE) to preprocess your files. i.e. follow #include directives and evaluate #define macros.

    CTC2114 means that the CL.EXE process was created successfully, but for some reason it failed:

    1. The process timed out because it ran for more than 2 minutes

    2. The process exitied with a non-zero exit code (errorlevel != 0)

    The most likely thing is case 2.

    The compiler uses the CRT function tempnam to create a temporary file for the preprocessed output. We use the prefix "~ctc", so look in your %TMP% directory for files like this. Note that if you are NOT specifying a "verbose" level, these files are deleted automatically.

    It looks like you are specifying -v on the command line, so these intermediate files should remain in your %TMP% directory, but you don't have them in your project. If you can add -v to the CTC command line in the IDE builds, examining the resulting output might yield some clues.



  • AUniqueDisplayName

    The problem was solved by going from Visual Studio 2005 Standard to Visual Studio 2005 Professional.

    I thought I had installed the Professional version but I had installed the Standard edition.

    It might want to offer a friendlier error message in this case.

      -Andrew.

     


  • What does error CTC2114 mean?