[Rxtx] Strange build error for CDC/PocketPC target

Ivan Maidanski ivmai at mail.ru
Mon Dec 21 10:48:18 MST 2009


Aldo Stracquadanio <aldo.strac at gmail.com> wrote:
> After removing junks installed by varius VS versions I've got rid of the
> error of previous mails. Now I'm compiling inside Visual Studio 2008 and all
> paths seems to be ok; but I've still got an error. The problem arise when I
> include jni.h (from Sun CDC Toolkit) and then I include windows.h. The first
> one will include his stddef.h (from jni.h: #include
> "../include/porting/ansi/stddef.h") and the latter will include stdlib.h
> (#include <stdlib.h>). This will result in a double definition of type
> wint_t (typedef wchar_t wint_t;), causing a compilation error. Do someone
> know how to get rid of this?

Use jni.h from the standard JDK.

> 
> Thank you,
> bye,
> Aldo.




More information about the Rxtx mailing list