undefined reference to `getline' in c

后端 未结 3 1767
情书的邮戳
情书的邮戳 2020-11-28 14:34

I am learning to use getline in C programming and tried the codes from http://crasseux.com/books/ctutorial/getline.html

#include 
#include <         


        
3条回答
  •  迷失自我
    2020-11-28 15:10

    I am also using MinGW. I checked MinGW headers and getline() does not appear in any C header, it appears only in C++ headers. This means the C function getline() does not exist in MinGW.

提交回复
热议问题