k2tom wrote:
tcc -o test.exe test.c -mwindows
-mwindows nas no effect. TCC will create a GUI executable automatically
if there is a WinMain function.

tcc: _winstart not defined
I suspect the libtcc1.a that you once did build yourself is missing
files. See
    http://lists.gnu.org/archive/html/tinycc-devel/2011-12/msg00001.html


Anyway, as requested earlier by some people already I did upload
the rest of the full mingw winapi headers:
    http://download.savannah.nongnu.org/releases/tinycc/

With this tcc should work for most of that "Forger's Win32API Tutorial".
Here the "app_three" example (with resource):

$ cd app_three
$ windres app_three.rc -O coff -o rc.o
$ tcc -v app_three.c rc.o  -I ..\winapi-full-for-0.9.27\include\winapi 
-lcomdlg32 -lcomctl32

tcc version 0.9.27 (i386 Windows)
-> app_three.c
-> rc.o
<- app_three.exe (7168 bytes)

Instead of using -I the headers may be copied to the tcc installation as well.

-- gr


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

Reply via email to