tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] run vs compiling


From: Markus Bergholz
Subject: [Tinycc-devel] run vs compiling
Date: Sat, 21 Jun 2014 15:44:27 +0200

Hi,
I can run lua with tcc live like that

~$ wget http://www.lua.org/ftp/lua-5.2.3.tar.gz
--2014-06-21 12:26:18--  http://www.lua.org/ftp/lua-5.2.3.tar.gz
Auflösen des Hostnamen »www.lua.org (www.lua.org)«... 148.251.24.173, 2a01:4f8:201:620f::2001
Verbindungsaufbau zu www.lua.org (www.lua.org)|148.251.24.173|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 251195 (245K) [application/gzip]
In »»lua-5.2.3.tar.gz«« speichern.

100%[=============================================================================================================================>] 251.195      267KB/s   in 0,9s   

2014-06-21 12:26:20 (267 KB/s) - »»lua-5.2.3.tar.gz«« gespeichert [251195/251195]

~$ tar xf lua-5.2.3.tar.gz 
~$ cd lua-5.2.3/src/
~$ tcc *[^ca].c lgc.c lfunc.c -run lua.c
Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio
> 

So far so good, but how can I compile/create binarys with tcc from lua?

~$ tcc *[^ca].c lgc.c lfunc.c
tcc: error: undefined symbol 'main'
tcc: error: undefined symbol 'fabs'
tcc: error: undefined symbol 'sin'
tcc: error: undefined symbol 'sinh'
tcc: error: undefined symbol 'cos'
tcc: error: undefined symbol 'cosh'
tcc: error: undefined symbol 'tan'
tcc: error: undefined symbol 'tanh'
tcc: error: undefined symbol 'asin'
tcc: error: undefined symbol 'acos'
tcc: error: undefined symbol 'atan'
tcc: error: undefined symbol 'atan2'
tcc: error: undefined symbol 'ceil'
tcc: error: undefined symbol 'floor'
tcc: error: undefined symbol 'fmod'
tcc: error: undefined symbol 'sqrt'
tcc: error: undefined symbol 'pow'
tcc: error: undefined symbol 'log'
tcc: error: undefined symbol 'log10'
tcc: error: undefined symbol 'exp'

Any ideas?

reply via email to

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