# Compiling Wixel apps on the Mac, issues with putchar

**URL:** https://forum.pololu.com/t/compiling-wixel-apps-on-the-mac-issues-with-putchar/17002
**Category:** Wixel
**Created:** [March 22, 2019, 5:55pm UTC](https://forum.pololu.com/t/compiling-wixel-apps-on-the-mac-issues-with-putchar/17002 "2019-03-22T17:55:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![PlanetaryGear](https://forum.pololu.com/user_avatar/forum.pololu.com/planetarygear/32/7642_2.png) [@PlanetaryGear](https://forum.pololu.com/u/PlanetaryGear)
#### Post date: [March 22, 2019, 5:55pm UTC](https://forum.pololu.com/t/compiling-wixel-apps-on-the-mac-issues-with-putchar/17002/1 "2019-03-22T17:55:43Z")

</div>

I am interested in developing Wixel apps on my mac, but am having some trouble with the toolchain. I have installed sdcc without dificulty, sdcc -v reports "SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.8.0 #10562 (Mac OS X x86\_64)”

I have downloaded the SDK from github but when I go to try to make all the apps by typing make while in the wixel-sdk-master folder I get an error from any app that implements the putchar() function:

```auto
Compiling apps/radio_sniffer/radio_sniffer.rel

apps/radio_sniffer/radio_sniffer.c:70: error 98: conflict with previous declaration of 'putchar' for attribute 'type' at /usr/local/bin/../share/sdcc/include/stdio.h:86

from type 'int function ( int fixed) fixed'

to type 'void function ( unsigned-char fixed) fixed'

make: *** [apps/radio_sniffer/radio_sniffer.rel] Error 1

```

I am perhaps having a path issue and there is a conflicting definition of putchar somewhere in the path? Any suggestions for getting around that greatly appreciated! Thank you!  
James

---

<div class="post-metadata">

### Author: ![DavidEGrayson](https://forum.pololu.com/user_avatar/forum.pololu.com/davidegrayson/32/4639_2.png) [@DavidEGrayson](https://forum.pololu.com/u/DavidEGrayson)
#### Post date: [March 22, 2019, 10:03pm UTC](https://forum.pololu.com/t/compiling-wixel-apps-on-the-mac-issues-with-putchar/17002/2 "2019-03-22T22:03:15Z")

</div>

Hello, James.

Recent versions of SDCC changed the type of the `putchar` function, so all code that defines `putchar` needs to be updated. I have just updated the [Wixel SDK](https://github.com/pololu/wixel-sdk) accordingly. Could you get the latest version and try again?

–David

---

<div class="post-metadata">

### Author: ![PlanetaryGear](https://forum.pololu.com/user_avatar/forum.pololu.com/planetarygear/32/7642_2.png) [@PlanetaryGear](https://forum.pololu.com/u/PlanetaryGear)
#### Post date: [March 23, 2019, 1:56am UTC](https://forum.pololu.com/t/compiling-wixel-apps-on-the-mac-issues-with-putchar/17002/3 "2019-03-23T01:56:11Z")

</div>

Wonderful! Thank you! I downloaded the updates you just made and everything compiles again!
