[Top][All Lists]

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

Re: [Tinycc-devel] run with libraries

From: grischka
Subject: Re: [Tinycc-devel] run with libraries
Date: Sat, 16 May 2009 21:18:39 +0200
User-agent: Thunderbird (X11/20081125)

vijay mohan wrote:
tcc -lStr -run test.c
gives the error:
tcc: undefined symbol 'TmpStr'
tcc  TmpStr.o -run test.c

This is because .o are always loaded but libraries are loaded only if
needed and in your case when tcc first looks at the library it does
not know that it will need the "TmpStr" symbol.

Actually unixy linkers in general suffer from that amnesia, for example
this one would not work either: gcc -lStr test.c

So you are right, it is not possible to use -run with libraries that way.

--- grischka

reply via email to

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