getline is missing on solaris gcc 3.3.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to compile on Solaris 8 using gcc 3.3.2. This simple test
does not compile, saying that it can't find getline. Where is getline on
Solaris? This works fine on Linux.

#define _GNU_SOURCE
#include <cstdio>

int main(int argc, char* const* argv)
{
   FILE* fp = fopen("test","r");
   size_t n;
   char* lineptr = new char[80];
   ssize_t n_read = getline(&lineptr, &n, fp);
}



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux