sammielove45 / propgcc

Automatically exported from code.google.com/p/propgcc
1 stars 1 forks source link

printf format specifier %i doesn't work #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following program does not work: no numerical value is output. If I replace 
%i with %d it works. According to cplusplus.com either should work:

http://www.cplusplus.com/reference/cstdio/printf/

--------------------------------------------------
#include <stdio.h>
#include <propeller.h>

int main(){
  waitcnt(CLKFREQ + CNT);

  int myVar = 314159;
  printf("myVar: %i\n", myVar);  
  return 0;
}
--------------------------------------------------

Original issue reported on code.google.com by s...@srlmproductions.com on 27 Feb 2014 at 8:06