This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Query of type of memcpy (and sys_errlist) on Cygwin

Hi Tatsuro,
May be was better to not reply to a different thread ?

On 10/04/2016 05:14, Tatsuro MATSUOKA wrote:
The topic was discussed on gnuplot mailing list.
Frorm discussion there (the topic is now pending.) ,
I decided ask here.
In compling gnuplot I have met errors:
../../gnuplot/src/stdfn.h:67:8: error: conflicting types for 'memcpy'
  char * memcpy __PROTO((char *, char *, size_t));

../../gnuplot/src/stdfn.h:171:14: error: conflicting types for 'sys_errlist'
  extern char *sys_errlist[];

Ethan A Merritt suggested in the gnuplot mailing list that:
Anyhow, the correct typing for memcpy is:
    void *memcpy(void *,  const void *,  size_t);

correct, when in doubt this is a good place to look for:

I have complied many times this source but I have not met such kinds of errors.
(Today I have cleanly installed Cygwin because I have cleanly install windows 10)

Any suggestions?

cygwin/newlib headers are under re-shuffle to simplify the guarding clauses in the main headers. It is possible that gnuplot is misleaded and don't correctly detect memcopy as it should.

Have you tried to use latest test release ?


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]