0

getline , ssize_t not working

Hello friends, I am using Code Blocks 17.12 MinGW GNU GCC Compiler, using getline and ssize_t in my C program but getting error. Because of compiler, read that _GNU_SOURCE required for this. Could you please anyone explain what is that and who to install.

22nd Dec 2018, 4:37 PM
Syam Kumar
Syam Kumar - avatar
1 Odpowiedź
+ 2
Write #define _GNU_SOURCE at the top of your code if you haven't already or check if you included right libraries
22nd Dec 2018, 7:54 PM
Mina
Mina - avatar