[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] tcc version 0.9.25 under Windows XP: "-static" doesn't wo
From: |
Wenzel |
Subject: |
[Tinycc-devel] tcc version 0.9.25 under Windows XP: "-static" doesn't work at all |
Date: |
Fri, 13 Aug 2010 07:13:15 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 |
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] tcc version 0.9.25 under Windows XP: "-static" doesn't work at all,
Wenzel <=