Geo*_*Geo 10 c++ windows c-preprocessor
是否有独立的C++预处理器?我不需要编译器/链接器,我无法安装完整的工具包.
我希望能够获得一些标题的预处理版本,使用一些定义和包含我提供的路径.
编辑:我不能依赖任何可用的东西.没有cl,没有gcc,没什么.至少我需要做的是处理宏(特别是#ifdef和#if).
编辑:我在Windows XP计算机上使用它.
小智 8
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.
Run Code Online (Sandbox Code Playgroud)
您可能想看看GPP,通用预处理器.它是可自定义的,但看起来它带有一些预定义的设置,可以进行C/C++预处理.
编辑:看起来-C是要使用的设置
-C cpp兼容模式.这是gpp的行为最接近> cpp的模式.与默认模式不同,元宏扩展仅在>行的开头发生,并且可以理解C注释和字符串.
mpp portable c预处理器:
mcpp项目被选为2002年日本信息技术促进局(IPA)的"探索性软件项目"之一,并再次入选2003年项目.对于该项目的成就,作者被评为最高级程序员之一<<
许多编译器都有一个命令行选项,可以执行您想要的操作.
例如,GCC是-E
,而MSVC是/P
.
归档时间: |
|
查看次数: |
5563 次 |
最近记录: |