Find the answer to your Linux question:
Results 1 to 2 of 2
Hi I got a new code for whiteboard .This a c++ code .I got an error while compiling with gcc. Following is the error. Code: gcc whiteboard.cpp whiteboard.cpp:25: conflicting types ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    3

    Compilation Error


    Hi
    I got a new code for whiteboard .This a c++ code .I got an error while compiling with gcc.

    Following is the error.
    Code:
    gcc whiteboard.cpp
    whiteboard.cpp:25: conflicting types for `char*sys_errlist[]'
    /usr/include/bits/sys_errlist.h:28: previous declaration as `const char* const
       sys_errlist[]'
    whiteboard.cpp: In function `int main(int, char**)':
    whiteboard.cpp:84: invalid conversion from `int*' to `socklen_t*'
    Why this error comes .Please help me.

    Thank u

  2. #2
    Linux Newbie zdawg's Avatar
    Join Date
    Jan 2004
    Location
    Canada
    Posts
    218
    You get an error; but does it continue or die?
    Me & Myself just ganged up on I....... Now We all have problems..and none of Us are speaking!
    bash-3.00$ uname -a
    SunOS sparky 5.11 OpenSolaris-swa sun4u sparc SUNW,Ultra-Enterprise

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •