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: Markus Bergholz
Subject: Re: [Tinycc-devel] run vs compiling
Date: Sat, 21 Jun 2014 16:25:24 +0200




On Sat, Jun 21, 2014 at 4:01 PM, Daniel Glöckner <address@hidden> wrote:
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
?

Yes, this works. But why tcc don't need the -lm option when using -run?
 

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel



--
icq: 167498924
XMPP|Jabber: address@hidden

reply via email to

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