注册 登录
编程论坛 C++教室

[求助]请将这个错误逐句解释一下好么?谢谢

nan123 发布于 2007-03-18 14:58, 1347 次点击

--------------------Configuration: first - Win32 Debug--------------------
Compiling...
firstDlg.cpp
D:\Program Files\vs2005\MSDev98\MyProjects\first\firstDlg.cpp(85) : error C2065: 'IDC_BUTTON1' : undeclared identifier
Error executing cl.exe.

first.exe - 1 error(s), 0 warning(s)


尤其是
error C2065: 'IDC_BUTTON1'

------------------

cl.exe是做什么的?


thank you

[此贴子已经被作者于2007-3-18 15:16:07编辑过]

7 回复
#2
yuyunliuhen2007-03-18 15:39
cl.exe生成的可执行文件.
代码呢?
#3
litcatyx2007-03-18 15:48
cl.exe是VC的编译器
'IDC_BUTTON1' : undeclared identifier
'IDC_BUTTON1':未声明的标识符
#4
nan1232007-03-18 15:49
代码很多的,就是用MFC appwizard(exe)做一个简单的程序,单击按扭,显示"欢迎进入VC世界"的对话框

cl.exe每一个程序都生成么?
#5
litcatyx2007-03-18 16:05
cl.exe不是因为你的项目生成的,它是VC的编译器,装上VC之后就在你的机子上了
#6
nan1232007-03-18 16:22
我记得好象好多程序有错误的时候都有cl.exe
#7
yuyunliuhen2007-03-18 16:55
以下是引用yuyunliuhen在2007-3-18 15:39:09的发言:
cl.exe生成的可执行文件.

不好意思,我说错了,cl.exe是个控制台程序.是编译器名称.它会在编译完成后自动呼叫连接器Link.exe,将你的程序所需要的函数库自动连接起来來。

#8
nan1232007-03-18 17:18
1