FIX: When you use the "CL /E" compiler option to preprocess a C source file, the macro in the output file does not contain any spaces in Visual C++ .NET 2003

Article translations Article translations
Article ID: 917331 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You have a C source file that contains a macro.
  • The macro contains one or more spaces.
  • In Microsoft Visual C++ .NET 2003, you use the following command to preprocess the C source file:
    CL /E csourcefile.c
    Note The placeholder csourcefile.c represents the file name of the C source file that you want to preprocess.
In this scenario, the macro in the output file does not contain any spaces. For example, the C source file contains the following macro:
#line no
However, the output file contains the following macro instead:
#lineno

RESOLUTION

Service pack information

To resolve this problem, obtain the latest service pack for Microsoft Visual Studio .NET 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
918007 List of bugs that are fixed in Visual Studio .NET 2003 Service Pack 1

Hotfix information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

You must have Microsoft Visual Studio .NET 2003 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
C1xx.dll13.10.5031.02,211,84029-Apr-200613:03x86
C1.dll13.10.5031.0937,98429-Apr-200613:02x86
Feacp.dll13.10.5031.01,974,27230-Apr-200603:36x86
Feacp.libNot applicable5,34229-Apr-200613:14Not applicable

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Visual Studio .NET 2003 Service Pack 1.

MORE INFORMATION

The CL /E compiler option

This option preprocesses C and C++ source files and then copies the preprocessed files to the standard output device. The output file is identical to the original source file, except that all preprocessor directives and macro expansions have been performed, and comments have been removed. You can use the /C option together with the /E option to preserve comments in the output file.

Use the /E option when you want to resubmit the preprocessed listing for compilation. Unlike the /EP option, the /E option adds #line directives to the output. The #line directives are put at the beginning and at the end of each included file. The #line directives are also put around lines that are removed by preprocessor directives that specify conditional compilation.

The #line directives renumber the lines of the output file. Errors that are generated during later stages of processing refer to the line numbers of the original source file instead of to the line numbers of the output file. Use the /EP option to suppress #line directives.

The /E option suppresses compilation. This option also suppresses the output files from the following options:
  • /FA
  • /Fa
  • /Fm
Note You cannot use precompiled headers together with the /E option.

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 917331 - Last Review: October 9, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
Keywords: 
kbvsnet2003sp1fix kbqfe KB917331

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com