Hallo, bin gerade beim programmieren und habe zum ersten male folgende Fehler bekommen: ----8<------------------------------------------------------------------ cc -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lX11 -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -o tdaustausch-client client_admin.o client_calendar.o client_imap.o client_webdav.o tdaustausch-client.o client_imap.o: In function `client_imap_create_mailfolder_list': client_imap.c:(.text+0x5ac): undefined reference to `strdupa' collect2: ld returned 1 exit status make: *** [link] Fehler 1 ----8<------------------------------------------------------------------ Das eigenartige is, das selbst die mitgelieferten Beispiele aus meinem GNU-C Handbuch den Fehler produziren, wenn sie "strdupa" und eine handvoll anderer verwenden. Aus der glibc Dokumentation: ----[ "/usr/share/doc/glibc-doc/html/libc_5.html" ]--------------------- #include <paths.h> #include <string.h> #include <stdio.h> const char path[] = _PATH_STDPATH; int main (void) { char *wr_path = strdupa (path); char *cp = strtok (wr_path, ":"); while (cp != NULL) { puts (cp); cp = strtok (NULL, ":"); } return 0; } ----8<------------------------------------------------------------------ Kann mir jemand sagen, wo der Fehler liegt? Anm: "strdupa" ist definitiv in /usr/include/string.h Thanks, Greetings and nice Day Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature