Community-PIO-CH32V / platform-ch32v

PlatformIO platform for CH32V RISC-V chips (CH32V003, CH32V103, CH32V20x, CH32V30x, CH32X035) and CH56x, CH57x, CH58x, CH59x
Apache License 2.0
234 stars 37 forks source link

Can the C language format be set to the C99 version? #40

Closed Witawat closed 1 year ago

Witawat commented 1 year ago

I've tried migrating code from MRS, but it runs on C99, causing some code to not compile. correctly

image

Now I've tested three IDEs to find the one that's easiest to use.

  1. MRS
  2. Clion
  3. VSCode

But there's a problem with C99.

maxgerhardt commented 1 year ago

I thought in C you always had to use

#include <stdbool.h>

to get the bool type. Per https://en.cppreference.com/w/c/types/boolean.

Witawat commented 1 year ago

image

this not support print %f ?

this config on MRS is work

image

i add

build_unflags = -lprintf build_flags = -lprintfloat

not work

image