On 2010-08-29, Martin Lukes <> wrote:
> I have been trying to use a utility called getline by E Sossman,
> distributed on the website for the comp/lang/c forum.
There is no such thing as "the website for the comp/lang/c forum". This
is a newsgroup, and there is no specific website for it.
> My code would not
> compile, I eventually worked out the strange error messages and the
> problem is that there is already a function in glibc called getline.
This is a fairly common problem. It is, IMHO, 100% glibc's fault --
the name was fairly widely used before they added theirs, and I can't
see any reason for which they couldn't have picked another name.
I suspect that, as a matter of practicality, a lot of people will now
have to rename their perfectly reasonable "getline()" functions to
make up for glibc's high-handed attitude towards namespaces.
-s
--
Copyright 2010, all wrongs reversed. Peter Seebach /
usenet-
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.