chipKIT® Development Platform

Inspired by Arduino™

Test Build 0305 - Need to manually include <stdarg.h>

Created Mon, 19 Mar 2012 19:59:00 +0000 by KurtE


Mon, 19 Mar 2012 19:59:00 +0000

Probably not a big deal, but when I compile the following code:

void MSound(uint8_t _pin, byte cNotes, ...)
    va_list ap;
    unsigned int uDur;
    unsigned int uFreq;
    va_start(ap, cNotes);

    while (cNotes &gt; 0) {
        uDur = va_arg(ap, unsigned int);
        uFreq = va_arg(ap, unsigned int);
        SoundNoTimer(_pin, uDur, uFreq);

Which is part of my main file, it compiles fine with Arduino including Arduino 1.0. It also compiled with the released build of MPIDE. However it does not compile properly on the latest test build.

Fixed it by manually including the header file: stdarg.h. At least it compiles. May be a day or so before I try running it...



Tue, 20 Mar 2012 19:34:10 +0000

Please file this as an issue in the Issue list:

Thanks, -_Rick


Tue, 20 Mar 2012 20:24:03 +0000

Ok, Just created a github account, so hopefully I did it Ok.