octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error: invalid conversion from 'char* (*)(char*, int)' to 'char* (*)(cha


From: Tatsuro MATSUOKA
Subject: error: invalid conversion from 'char* (*)(char*, int)' to 'char* (*)(char*, size_t)' in unistd.h of gnulib
Date: Thu, 25 Mar 2010 17:13:39 +0900 (JST)

Hello

Excuse me for the separated post.

/file-ops.cc:40:
../libgnu/unistd.h:762:1: error: invalid conversion from 'char* (*)(char*, 
int)' to 'char* (*)(char*,
size_t)'

The following is found 
_GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size));
_GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size));
# else
_GL_CXXALIAS_SYS (getcwd, char *, (char *buf, size_t size));

See in stddef.h (This seem to exist gcc-4.5.0 but not 4.4.0),
size_t seems to be defined as 'long unsigned int'

However I cannot find the code of conversion from 'char* (*)(char*, int)' to 
'char* (*)(char*,
size_t)'

HMMMM??????


Regards

Tatsuro

********************
Notes

/file-ops.cc:40:
#include "pathmax.h"
>From the pathmax.h, unistd.h is called.

--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]