Menu

#2 Source does'nt compile on Linux

open
nobody
None
5
2005-04-29
2005-04-29
Darren
No

Hello,

I tried to build fart on Linux and cannot with the following
error.

~/build/fart198> cat mk
gcc fart.cpp fart_shared.c wildmat.c -o fart $@
~/build/fart198> gcc fart.cpp fart_shared.c wildmat.c -o
fart $@
In file included from fart.cpp:48:
fart_shared.h:89: declaration of C function `char*
memmem(char*, unsigned int,
const char*, unsigned int)' conflicts with
/usr/include/string.h:217: previous declaration `void*
memmem(const void*,
unsigned int, const void*, unsigned int)' here

I am using RedHat.

Discussion

  • Lionello Lunesu

    Lionello Lunesu - 2008-01-10

    Logged In: YES
    user_id=60499
    Originator: NO

    Seems that "memmem" already exists in the CRT?
    I will check it. Thanks.

     
  • Reformed

    Reformed - 2008-12-26

    I got the same error on Ubuntu 8.04

     

Log in to post a comment.