Hello:

I'm not able to build any statically linked executable under Windows XP.

Whatever "-L" and "-l" options I provide, tcc just returns "undefined symbol", e. g.:

#include <stdio.h>

int main(void)
{
    puts("Hello, world!");
    exit(0);
}

E:\tmp>tcc -static -Le:\tcc\lib -ltcc1 test.c -o test.exe
tcc: undefined symbol 'puts'
tcc: undefined symbol 'exit'
tcc: undefined symbol '_controlfp'
tcc: undefined symbol '__set_app_type'
tcc: undefined symbol '__getmainargs'

Of course, this example doesn't make much sense because I could build it without "-static ...". But if I add my own "libxxx.a" I get its symbols "undefined", too!

If I'am doing something wrong, please excuse and hint.

Regards

Werner


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to