Hi Rene,
Understood!
I have found there is something wrong with my host system, as far as
dietlibc is concerned. So, not using T2, just using dietlibc in my
running distro, Quirky 8.1.3.1 armv7 on the Pi3...
With the dietlibc DEB package installed, I tried a simple hello world:
#include <stdio.h>
main()
{
printf("Hello World");
}
/usr/bin/diet gcc -nostdinc helloworld.c -o helloworld
In file included from /usr/include/diet/time.h:6:0,
from /usr/include/arm-linux-gnueabihf/sys/types.h:132,
from /usr/include/diet/stdio.h:5,
from helloworld.c:1:
/usr/include/diet/signal.h:252:3: error: unknown type name ‘int32_t’
int32_t si_signo;
^
/usr/include/diet/stdio.h has a line "#include <sys/types.h>", so the
big question is, why doesn't it retrieve
/usr/include/diet/sys/types.h?
Instead, it gets /usr/include/arm-linux-gnueabihf/sys/types.h, despite
the "-nostdinc".
I changed the line in stdio.h to "#include
"/usr/include/diet/sys/types.h"", now helloworld.c compiles.
This is so strange. Anyone got any thought why this is happening?
Regards,
Barry Kauler
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2