环境为dev-cpp
日志如下:
编译器: Default compiler
执行 gcc.exe...
gcc.exe "E:\C\ran.c" -o "E:\C\ran.exe" -I"D:\Dev-Cpp\include" -L"D:\Dev-Cpp\lib"
C:\DOCUME~1\administrator\LOCALS~1\Temp/ccy6baaa.o(.text+0x2c1):ran.c: undefined reference to `prinf'
C:\DOCUME~1\administrator\LOCALS~1\Temp/ccy6baaa.o(.text+0x2f9):ran.c: undefined reference to `prinf'
C:\DOCUME~1\administrator\LOCALS~1\Temp/ccy6baaa.o(.text+0x334):ran.c: undefined reference to `prinf'
C:\DOCUME~1\administrator\LOCALS~1\Temp/ccy6baaa.o(.text+0x422):ran.c: undefined reference to `prinf'
C:\DOCUME~1\administrator\LOCALS~1\Temp/ccy6baaa.o(.text+0x45a):ran.c: undefined reference to `prinf'
C:\DOCUME~1\administrator\LOCALS~1\Temp/ccy6baaa.o(.text+0x495):ran.c: more undefined references to `prinf' follow
collect2: ld returned 1 exit status
执行结束
怎么回事?
----------------解决方案--------------------------------------------------------
我建议你把代码发上来
不过粗略地看了下你的问题
估计是你把 printf 打成了 prinf
----------------解决方案--------------------------------------------------------
[QUOTE]undefined reference to `prinf' [/QUOTE]
没有明确的标识prinf.....
----------------解决方案--------------------------------------------------------
可能是将printf错写成prinf
----------------解决方案--------------------------------------------------------