When compiling, I get the message that setlocale is an “undefined symbol”… whats going on?
The ‘locale’ suite can be found in /lib/libposix.a. To avoid linking to libposix.a you can do the following to create a separate locale library: $ ar xv /lib/libposix.a locale.o $ ar rv /usr/lib/liblocale.a locale.o Now you can simply link to ‘-llocale’ to add it in. A better fix would be to grab and use libUTIL, a collection of useful and needed functions for any serious porting effort (see Hints&WOW, above). libUTIL is maintained by Jim Jagielski and can be found on jagubox.