On Sat, Jun 21, 2014 at 4:01 PM, Daniel Glöckner <[email protected]> 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 > [email protected] > https://lists.nongnu.org/mailman/listinfo/tinycc-devel > -- icq: 167498924 XMPP|Jabber: [email protected]
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
