Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When compiling, I get the message that setlocale is an “undefined symbol”… whats going on?

0
Posted

When compiling, I get the message that setlocale is an “undefined symbol”… whats going on?

0

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.

0

The ‘locale’ suite can be found in /lib/libposix.a. To avoid linking to libposix.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123