由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - How to tell gcc stop compiling.
相关主题
问个C++问题,高手帮帮忙C++ template preprocessor
怎样include一个函数forward declaration
弱问c++里有没有NULL这个keyword?弱问C++一个问题 一直不解
shell scripting 中的 $status 有什么特定含义吗?谢谢。C array
c++,这种做法不行?A C++ compiler related interview question
怎么样最好的编译不同文件在同一个VC project里面?*** help needed! on MATLAB GUI ***
这个结果是啥,为什么呢?inheritence problem
又一个初级问题: C++中多如牛毛的#define格式A tech question (转载)
相关话题的讨论汇总
话题: compiling话题: stop话题: tell话题: gcc话题: some
进入Programming版参与讨论
1 (共1页)
l*l
发帖数: 26
1
I put the following code into my progrm.
#if SOME_CONDITION
#error "SOME_CONDITION is not supported"
//tell compiler stop compiling.
#endif
//My other code goes here ......
But how to tell the compiler stop compiling????
l*l
发帖数: 26
2
Seems no way to stop gcc compiling.
In Microsoft C, #error stop the compiler immediately.

【在 l*l 的大作中提到】
: I put the following code into my progrm.
: #if SOME_CONDITION
: #error "SOME_CONDITION is not supported"
: //tell compiler stop compiling.
: #endif
: //My other code goes here ......
: But how to tell the compiler stop compiling????

1 (共1页)
进入Programming版参与讨论
相关主题
A tech question (转载)c++,这种做法不行?
An interesting C++ compile error怎么样最好的编译不同文件在同一个VC project里面?
谁来解释一下这个是compiler问题吗?这个结果是啥,为什么呢?
关于Makefile的一个问题又一个初级问题: C++中多如牛毛的#define格式
问个C++问题,高手帮帮忙C++ template preprocessor
怎样include一个函数forward declaration
弱问c++里有没有NULL这个keyword?弱问C++一个问题 一直不解
shell scripting 中的 $status 有什么特定含义吗?谢谢。C array
相关话题的讨论汇总
话题: compiling话题: stop话题: tell话题: gcc话题: some