Hi,

I just used configure/make to install tcc. I got the following error
when I run tcc.

Homebrew installation also has the same problem (see the comment on
the following URL).

http://macappstore.org/tcc/

Could anybody show me how to install tcc on Mac OS X? Thanks.

$ cat main.c
#include <stdio.h>

int main() {
        puts("Hello World!");
        return 0;
}
$ tcc -v
tcc version 0.9.27 (x86_64 Darwin)
$ tcc main.c
/usr/lib/crt1.o: error: unrecognized file type
tcc: error: file 'crt1.o' not found
tcc: error: file 'crti.o' not found
In file included from main.c:2:
In file included from /usr/include/stdio.h:64:
In file included from /usr/include/_stdio.h:68:
/usr/include/sys/cdefs.h:81: warning: #warning "Unsupported compiler detected"
/usr/lib/libc.dylib: error: bad architecture
tcc: error: library 'c' not found
tcc: error: file 'crtn.o' not found
tcc: error: undefined symbol 'puts'


-- 
Regards,
Peng

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to