Hi AT91,
I am trying to build an AT91 GNU sample project, "getting-started-project-at91sam7x-ek". Here is the problem code.
Code:
//------------------------------------------------------------------------------
// Global Variables
//------------------------------------------------------------------------------
// Required for proper compilation.
struct _reent r = {0, (FILE *) 0, (FILE *) 1, (FILE *) 0};
struct _reent *_impure_ptr = &r;
The code is in ../at91lib/utility/stdio.c:64, however "struct _reent" is not defined in this source or any included headers, resulting in "error: variable 'r' has initializer but incomplete type". I am using the latest CodeSourcery G++ Lite toolchain on Linux. Searching Google doesn't provide any useful clues, please can you help me?
Best regards,
weartronics