tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] "_winstart not defined"


From: grischka
Subject: Re: [Tinycc-devel] "_winstart not defined"
Date: Sat, 10 Feb 2018 18:31:55 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

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




reply via email to

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