Skip to Main Content

Embedded Technologies

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compiling rxtxSerial using CDC JNI interface

843849Dec 21 2009
I'm trying to compile rxtxSerial (javaComm implementation) to ARM/Windows Mobile target. I'm experiencing this error:
error C2371: 'wint_t': redefinition. Different Base types	c:\program files\microsoft visual studio 9.0\smartdevices\sdk\pocketpc2003\include\stdlib.h	68	rxtxSerial
After a little of reverse engineering I discovered that this happens because rxtx includes jni.h, wich includes stddef.h from "../include/porting/ansi/stddef.h", wich defines wint_t. Then rxtx includes windows.h, wich includes stdlib.h, wich tries to define another time wint_t causing the error. Someone could help me getting rid of this please?

Thanks,
Aldo.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 18 2010
Added on Dec 21 2009
0 comments
984 views