Missing include

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
omcdr
Posts: 89
Joined: Wed Aug 17, 2016 3:25 pm
Has thanked: 7 times
Been thanked: 7 times

Missing include

Post by omcdr »

Code: Select all

In file included from utils.c:10:0:

C:/ChibiStudio/ChibiOS/os/hal/lib/streams/chprintf.h:41:17: error: unknown type name 'BaseSequentialStream'
   int chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap);


is it should be ?

Code: Select all

#include "hal_streams.h"
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Missing include

Post by Giovanni »

You just need to include "hal.h", other headers are not meant to be included separately.

Giovanni
omcdr
Posts: 89
Joined: Wed Aug 17, 2016 3:25 pm
Has thanked: 7 times
Been thanked: 7 times

Re: Missing include

Post by omcdr »

Ok

In this case:
C:\ChibiStudio\ChibiOS\os\common\ports\ARMCMx\chcore_v7m.h",192 Error[25]: #error '"CH_CUSTOMER_LIC_PORT_CM3 not defined"'.


Is it should be ?

Code: Select all

#include "ch.h"

or

Code: Select all

#include "chlicense.h"
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Missing include

Post by Giovanni »

Just "ch.h".

Giovanni
Post Reply