tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] run vs compiling


From: Daniel Glöckner
Subject: Re: [Tinycc-devel] run vs compiling
Date: Sat, 21 Jun 2014 16:01:50 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Sat, Jun 21, 2014 at 03:44:27PM +0200, Markus Bergholz wrote:
> ~$ 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'
...

How about
~$ tcc *[^ca].c lgc.c lfunc.c lua.c -lm -o lua
?



reply via email to

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