Re: Linux printf funny





Paul Burke wrote:

I'm converting an application from Windows console to Linux, and the changeover has gone remarkably easily (considering that I know very little about Linux), until now.

No problem installing GCC, KDevelop, FTDI USB drivers, remarkably few changes to recompile the code... but printf fails after about half-a-dozen calls.

If it is a multithreaded application, this can be the issue with printf() reentrancy. Many of the stdio.h functions are not reentrant by default, unless you are linking the appropriate libraries.

Vladimir Vassilevsky

DSP and Mixed Signal Design Consultant

http://www.abvolt.com

.