[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] -run question
From: |
Thomas Harning Jr. |
Subject: |
Re: [Tinycc-devel] -run question |
Date: |
Fri, 01 Apr 2005 02:02:42 -0500 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050329) |
Henrik Nordstrom wrote:
> On Fri, 1 Apr 2005, Paul Furber wrote:
>> But when I try to run it directly, tcc can't find a whole lot of symbols
>> that are in lualib.so and that are linked in correctly as above:
>> address@hidden lua $ tcc "-run -llualib -llua -lm -ldl" luatcc.c
>> tcc: undefined symbol 'luaopen_base'
>
> This is a longshot, but try reordering the libraries
> tcc "-run -llua -llualib -lm -ldl" luatcc.c
>
Hmm.. I think a potential issue is having the library includes within the
quotes... doing that will cause all those items to be pushed into 1 argument..
which I don't think would get parsed the right way.
So... removing the quotes should let the -run thing happen, and the individual
library includes get linked in.
tcc -run -llua -llualib -lm -ldl luatcc.c
should work I think.
--
Thomas Harning Jr.