[cffi-devel] Re: New patches: 17-Apr-2006
Yaroslav Kavenchuk
kavenchuk at jenty.by
Fri Apr 21 08:07:45 UTC 2006
Luís Oliveira wrote:
> Yaroslav Kavenchuk <kavenchuk at jenty.by> writes:
>> libtest.c(774) : error C2059: syntax error : '}'
>
> Hmm, do you have any suggestion for fixing this?
>
gcc report:
$ make
gcc -o libtest.dll -shared -lm -Wall -std=c99 -pedantic libtest.c
libtest.c:761: error: syntax error before "p"
libtest.c: In function `compare_against_abs':
libtest.c:763: error: `p' undeclared (first use in this function)
libtest.c:763: error: (Each undeclared identifier is reported only once
libtest.c:763: error: for each function it appears in.)
libtest.c:763: error: `intptr_t' undeclared (first use in this function)
libtest.c:763: error: syntax error before "abs"
libtest.c: At top level:
libtest.c:772: error: syntax error before "p"
libtest.c: In function `compare_against_xpto_fun':
libtest.c:774: error: `p' undeclared (first use in this function)
libtest.c:774: error: `intptr_t' undeclared (first use in this function)
libtest.c:774: error: syntax error before "xpto_fun"
make: *** [libtest.dll] Error 1
`intptr_t' defined in stdint.h (msys) or in io.h (msvctoolkit)
If append
#include <io.h>
to libtest.c library build on both systems.
Thanks!
--
WBR, Yaroslav Kavenchuk.
More information about the cffi-devel
mailing list