6 years, 3 months ago.

GCC compile error in mbed library - single arg putc()

I exported my program (gccarm), but on make I get a few errors, a couple of which relate to the single argument implementation of `make` in RawSerial.h, Stream.h.

The error is:

macro "putc" requires 2 arguments, but only 1 given

Which doesn't make any sense to me, since this is the declaration in RawSerial/Stream classes.

Anyone had the same/similar issue? What have I done wrong?

Hi,

what's your target? Is your program published ? So we can reproduce the issue.

posted by Martin Kojtal 03 Jul 2014

LPC1768. This one isn't, but I also have an error with my 'Chaser' hello world program - no such f/d on '#include <cstddef>' from Platform.h; so it seems like I'm not doing something right, probably the same thing.

posted by Ollie Ford 03 Jul 2014

Okay, for some reason after trying Chaser and going back to the original (*no changes to source*), it was seemingly fine with `putc()`, ran for much longer, but then got stuck on including cstddef in mbed.h.

posted by Ollie Ford 03 Jul 2014

what version of libraries (mbed or any other ) does your app contain? update your libraries to the latest revision.

posted by Martin Kojtal 03 Jul 2014

Latest mbed only.

posted by Ollie Ford 03 Jul 2014
Be the first to answer this question.