Thanks all.
Finally found it (but strange).
As Michael said, as suspected, it was a problem about -L. (not a
libc6-dev install problem)
So, I was forced to use a -L/usr/lib/i386-linux-gnu option in all
cases, and to copy crt* to /usr/lib (THIS
may be an issue on linux....)
On the other hand, my
main aim was to use "tcc -run" which works very fine :)
Thanks again.
ian
Le 24/11/2018 à 18:36, Michael Matz a
écrit :
Hi,
On Sat, 24 Nov 2018, ian wrote:
None of my habits, but I'd like an advice.
I didn't code in C for many many
years. But...
I did a few years ago correctly install tcc on my windows 7, but
unfortunately it went down (winscrap), and I only have my debian
8 x32 other
PC (kinda server for apache/php/mysql/pgsql/ and so on).
I did get the last release found, and I have this error while
trying to
compile a simple "Hello World, exit=%d"...
I get almost the same kind of error while trying to compile
gcctestsuite.c
tcc: file '/usr/lib/crt1.o' not found
tcc: file '/usr/lib/crti.o' not found
In file included from test.c:1:
In file included from /usr/include/stdio.h:27:
/usr/include/features.h:374: include file 'sys/cdefs.h' not
found
You miss the development files for glibc, I think on debian it's
libc-dev or libc6-dev. (after installing those you probably need
to reconfigure/build tcc, so that it searches in the correct dirs
on debian).
Ciao,
Michael.
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
|