当前位置: 代码迷 >> C语言 >> [Linker error] undefined reference to `prinf'的问题!
  详细解决方案

[Linker error] undefined reference to `prinf'的问题!

热度:1124   发布时间:2007-02-14 17:41:22.0
[Linker error] undefined reference to `prinf'的问题!

环境为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

执行结束


怎么回事?

搜索更多相关的解决方案: Linker  reference  prinf  undefined  

----------------解决方案--------------------------------------------------------

我建议你把代码发上来

不过粗略地看了下你的问题

估计是你把 printf 打成了 prinf


----------------解决方案--------------------------------------------------------
[QUOTE]undefined reference to `prinf' [/QUOTE]



没有明确的标识prinf.....
----------------解决方案--------------------------------------------------------
可能是将printf错写成prinf
----------------解决方案--------------------------------------------------------
  相关解决方案