回复 16楼 newdos
谢谢啦
#include<stdio.h>
int main()
{
FILE*FP=fopen("pppp","r");
}
--------------------Configuration: 002 - Win32 Debug--------------------
Compiling...
->001.cpp
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\001.cpp: In function 'int main()':
D:\Microsoft Visual C++ 6.0 Plus\Common\MSDev98\Bin\001.cpp:4:6: warning: unused variable 'FP' [-Wunused-variable]
FILE*FP=fopen("pppp","r");
^
Linking...
->gcc.exe
-Wall -l kernel32 -l user32 -l gdi32 -l winspool -l comdlg32 -l advapi32 -l shell32 -l ole32 -l oleaut32 -l uuid -l odbc32 -l odbccp32 -o "Debug/002.exe" ".\Debug\002.obj" ".\Debug\001.obj"
.\Debug\001.obj:001.cpp:(.text+0x0): multiple definition of `main'
.\Debug\002.obj:002.cpp:(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
执行 link.exe 时出错.
002.exe - 1 error(s), 0 warning(s)
这个错在哪里呢