AnsweredAssumed Answered

Why am I getting "conflicting types for 'boolean'" when using MQX Lite and USB CDC class device?

Question asked by Stephen Munnings on Feb 3, 2014
Latest reply on Apr 10, 2014 by Carlos_Musich

I am creating a project in CW MCU 10.5

I generated an MQX Lite project for the MK22D512VLK5 processor.

I added a USB CDC class device according to the USB Stack 4.1.1 Quick Start Guide

(had to disable filtering due to "filter bug" to even get the compent to show in the Components Library)

I generated code from the .pe file

I cleaned the project, then built the project.

I get an "/test_usb2/Generated_Code/types.h:62:25: error: conflicting types for 'boolean'" error message.

Investigation shows that types.h (in Generated code) defines boolean (unconditionally) as unsigned char

It shows that psptypes.h (included from mqxlite.h) defines boolean (unconditionally) as unsigned long

 

How should I resolve this conflict?

Since this is example code generated (unmodified) from a Quick Start Guide and using New Project Wizard, I don't think it is anything I have done..

Outcomes