On Mon, 18 Dec 2006, Adam Wysocki wrote:

Spinacz biurowy, Szymon Zygmunt <[EMAIL PROTECTED]>!

Undefined                       first referenced
 symbol                             in file
strsep                              /var/tmp//ccYEsuCr.o
strcasestr                          /var/tmp//ccYEsuCr.o

Tymczasowo spróbuj dodać w kodzie (ehg.c) coś takiego:

#define strsep strtok

char *strcasestr(const char *haystack, const char *needle)
{
       int i, hlen = strlen(haystack), nlen = strlen(needle);

       for (i = 0; i <= hlen - nlen; i++) {
               if (!strncasecmp(haystack + i, needle, nlen))
                       return (char*) (haystack + i);
       }

       return NULL;
}

Po tej poprawce sie kompiluje.
pozdr.

--
Szymon Zygmunt
[gg:1302185]

Odpowiedź listem elektroniczym