|
发表于 2006-12-31 22:56:30
|
显示全部楼层
cpp 是预处理程序,你要的是g++吧。
ailantian@vax:~/mypg$ cat micro.c
#include <stdio.h>
#define DEBUG(x) x
int main()
{
DEBUG(printf("hello world\n");)
return 0;
}
ailantian@vax:~/mypg$ cpp micro.c
int main()
{
printf("hello world\n");
return 0;
}
大概是这样的,man一下看更多选项
man cpp |
|