这里的undeclared identifier应该如何解决呢?
错误列表Compiling...
ceshi2.cpp
G:\pspdev\myproj\ceshi2\ceshi2.cpp(9) : error C2065: 'shuchu' : undeclared identifier
执行 cl.exe 时出错.
ceshi2.exe - 1 error(s), 0 warning(s)
ceshi2.cpp
G:\pspdev\myproj\ceshi2\ceshi2.cpp(9) : error C2065: 'shuchu' : undeclared identifier
执行 cl.exe 时出错.
ceshi2.exe - 1 error(s), 0 warning(s)
Cpp1.cpp
#include "stdafx.h"
void shuchu(char * str1,char str2)
{
printf(str1,str2);
}
void shuchu(char * str1,char str2)
{
printf(str1,str2);
}
ceshi.cpp
#include "Cpp1.cpp"
#include "stdafx.h"
int main(int argc, char* argv[])
{
printf("Hello World!\n");
shuchu("ceshi1","ceshi2");
return 0;
}
#include "stdafx.h"
int main(int argc, char* argv[])
{
printf("Hello World!\n");
shuchu("ceshi1","ceshi2");
return 0;
}
貌似是没有定义,该如何解决呢?
[[italic] 本帖最后由 找不到服务器 于 2008-1-14 17:49 编辑 [/italic]]