tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] How to install tcc on Mac?


From: Peng Yu
Subject: [Tinycc-devel] How to install tcc on Mac?
Date: Sun, 24 Feb 2019 08:06:44 -0600

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]