24 Jan
2003
24 Jan
'03
11:57
On Fri, 2003-01-24 at 12:00, Bastian Schern wrote:
Peter Wiersig schrieb:
Bastian Schern wrote:
Habe alle includes eingebunden, bekomme aber folgendes: implicit declaration of int strptime(...) ???
man strptime: NOTES (...) This function is available since libc 4.6.8. Linux libc4 and libc5 includes define the prototype unconditionally; glibc2 includes provide a prototype only when _XOPEN_SOURCE or _GNU_SOURCE are defined.
Hast du "#DEFINE _XOPEN_SOURCE" vor das #include geschrieben? So etwas schreibt man üblicherweise in CPPFLAGS und nicht in den Quellcode, also
gcc -D_XOPEN_SOURCE -o foo.o -c foo.c
Ja, das habe ich! Und tut's?
Ralf