vijay mohan wrote:
tcc -lStr -run test.c gives the error: tcc: undefined symbol 'TmpStr' However tcc TmpStr.o -run test.c works
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 _______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel
