tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] -run question


From: Paul Furber
Subject: [Tinycc-devel] -run question
Date: Fri, 01 Apr 2005 01:26:56 +0200

Hi all,
I'm developing a test application with tcc that links to the Lua
language and uses its dynamic libraries. Compling to an executable is no
problem:

address@hidden lua $ tcc -o luatcc luatcc.c -llua -llualib -lm -ldl
address@hidden lua $ ldd luatcc
        linux-gate.so.1 =>  (0xffffe000)
        liblua.so => /usr/local/lib/liblua.so (0x55589000)
        liblualib.so => /usr/local/lib/liblualib.so (0x5559e000)
        libm.so.6 => /emul/linux/x86/lib/libm.so.6 (0x555ae000)
        libc.so.6 => /emul/linux/x86/lib/libc.so.6 (0x555d1000)
        libdl.so.2 => /emul/linux/x86/lib/libdl.so.2 (0x556eb000)
        /lib/ld-linux.so.2 (0x55555000)

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'
tcc: undefined symbol 'luaopen_table'
tcc: undefined symbol 'luaopen_io'
tcc: undefined symbol 'luaopen_string'
tcc: undefined symbol 'luaopen_math'
tcc: undefined symbol 'luaL_loadbuffer'

What am I doing wrong? All libraries and include files are in default
locations and the ex4.c example that comes with tcc using similar syntax
works correctly.
-- 
Paul Furber <address@hidden>
ex tenebris lux, ex fenestris tux
--





reply via email to

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