Cross-compiling GPA for MinGW

Marcus Brinkmann Marcus.Brinkmann@ruhr-uni-bochum.de
Tue Dec 3 15:23:02 2002


On Tue, Dec 03, 2002 at 03:08:48PM +0100, Markus Gerwinski wrote:
>   In file included from conversion.c:31:
>   gpgme.h:518: parse error before `*'
>   gpgme.h:519: warning: type defaults to `int' in declaration of `ssize_t'
>   gpgme.h:519: `ssize_t' declared as function returning a function
>   gpgme.h:519: warning: function declaration isn't a prototype
>   gpgme.h:532: parse error before `GpgmeDataWriteCb'
>   gpgme.h:532: warning: no semicolon at end of struct or union
>   gpgme.h:535: parse error before `}'
>   gpgme.h:545: `gpgme_data_write' declared as function returning a function
>   In file included from conversion.c:32:
>   util.h:75: `read' declared as function returning a function
>   util.h:76: `write' declared as function returning a function
>   conversion.c: In function `_gpgme_data_append':
>   conversion.c:154: function `amt' is initialized like a variable
>   conversion.c:157: invalid operands to binary +
>   conversion.c:158: invalid operands to binary -
> 
> What's wrong here?

It seems it doesn't pick up the ssize_t typedef.  oes your cross compiler
define _MSC_VER?  "gcc -dM -E - < /dev/null"

Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/