由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - VC++ 2008: how to debug constant defined by #define
相关主题
c的memory layout和c++的memory layout有什么不同?c++ does not check const for extern variable?
C++现在写起来真舒服啊VC++: Module-Definition (.def) Files:
Can we define pure virtual function? (转载)Linux and Shared object
g++ problem!!!!问一个简单C++问题
should the .dll and .lib have the same name?谁能示范一个小的C程序
Intel C++ compiler 求教How to compile with ddd?
问一个windows下编译openGL code的问题 .NET C++ debug状态下怎么用鼠标显示变量值
有人用DEV-C++吗?core dump 后的尸体能debug吗?
相关话题的讨论汇总
话题: c++话题: debug话题: define话题: constant话题: defined
进入Programming版参与讨论
1 (共1页)
p****r
发帖数: 165
1
when in debug mode, it shows
CXX0017: Error: symbol "XXX" not found
is there a way to set compiler/linker option so the value will show?
I've already include /Od to disable the optimization.
thanks.
a****l
发帖数: 8211
2
不懂你的意思.编译器不就是因为不知道这个#define的数值才问你的吗?你要编译器显
示什么数?

【在 p****r 的大作中提到】
: when in debug mode, it shows
: CXX0017: Error: symbol "XXX" not found
: is there a way to set compiler/linker option so the value will show?
: I've already include /Od to disable the optimization.
: thanks.

a****n
发帖数: 1887
3
宏定义会在预编译中处理(replace),运行时看不到
s********i
发帖数: 145
4
That's exactly why you should favor "static const" over #define macro.
1 (共1页)
进入Programming版参与讨论
相关主题
core dump 后的尸体能debug吗?should the .dll and .lib have the same name?
trouble using gdb debugging C/C++Intel C++ compiler 求教
请教matlab转C++问一个windows下编译openGL code的问题
问个DLL调用问题有人用DEV-C++吗?
c的memory layout和c++的memory layout有什么不同?c++ does not check const for extern variable?
C++现在写起来真舒服啊VC++: Module-Definition (.def) Files:
Can we define pure virtual function? (转载)Linux and Shared object
g++ problem!!!!问一个简单C++问题
相关话题的讨论汇总
话题: c++话题: debug话题: define话题: constant话题: defined