I am not much of a programmer, so I do not know what am I doing, so this is the 
part around line 109 in /usr/include/sys/select.h
extern "C" {








 
extern int select (int __nfds, fd_set *__restrict __readfds,
                   fd_set *__restrict __writefds,
                   fd_set *__restrict __exceptfds,
                   struct timeval *__restrict __timeout);







 
extern int pselect (int __nfds, fd_set *__restrict __readfds,
                    fd_set *__restrict __writefds,
                    fd_set *__restrict __exceptfds,
                    const struct timespec *__restrict __timeout,
                    const __sigset_t *__restrict __sigmask);


}

And line 109 being:
extern int select .... 

Intel compilers 2015 can compile without error, but 2016 versions (both update 
1 & 2) gives this problem. It might be an Intel compiler problem as well.

> On 13 Mar 2016, at 08:12, Paul Eggert <[email protected]> wrote:
> 
> Balázs Hajgató wrote:
>> I have used the -E flag, the preprocess went fine. When I try to compile the
>> preprocessed code I got the following error:
>> ../libgnu/sys/select.h(599): error: declaration is incompatible with previous
>> "select" (declared at line 109 of "/usr/include/sys/select.h")
> 
> What is the declaration at line 109 of "/usr/include/sys/select.h", after 
> preprocessing, and how does that compare to the declaration you mentioned 
> below?
> 
>>   namespace gnulib { static int (*select) (int, fd_set *, fd_set *, fd_set *,
>> struct timeval *) = ::select; } extern "C" int _gl_cxxalias_dummy;
> 
> 
> 

Reply via email to