是否有独立的C源预处理器?

是否有独立的C预处理器?我不需要编译器/链接器,我无法安装完整的工具包.

我希望能够获得一些标题的预处理版本,使用一些定义和包含我提供的路径.

编辑:我不能依赖任何可用的东西.没有cl,没有gcc,没什么.至少我需要做的是处理宏(特别是#ifdef和#if).

编辑:我在Windows XP计算机上使用它.

解决方法:

cpp是你正在寻找的.不过,我不确定它是否可以在gcc发行版之外

CPP(1)                                                                 GNU                                                                 CPP(1)

NAME
       cpp - The C Preprocessor

SYnopSIS
       cpp [-Dmacro[=defn]...] [-Umacro]
           [-Idir...] [-Wwarn...]
           [-M|-MM] [-MG] [-MF filename]
           [-MP] [-MQ target...]
           [-MT target...]
           [-P] [-fno-working-directory]
           [-x language] [-std=standard]
           infile outfile

Only the most useful options are listed here; see below for the remainder.

DESCRIPTION
       The C preprocessor, often kNown as cpp, is a macro processor that is used automatically by the C compiler to transform your program before
       compilation.  It is called a macro processor because it allows you to define macros, which are brief abbreviations for longer constructs.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...