tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Windows: To add .res to the extensions allowed by the


From: grischka
Subject: Re: [Tinycc-devel] Windows: To add .res to the extensions allowed by the preprocessor?
Date: Fri, 11 Mar 2022 19:04:17 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Antoni Gual Via wrote:
Hi
To build a Windows app, windres from gcc is required. By default it uses
the gcc preprocessor to resolve the defines, and gcc has its
dependencies, so a complete Mingw install is required. A command line
option in windres allows to use any other preprocessor, and using tcc's
would make the thing almost selfcontained. Unfortunately tcc's preprocessor
does'nt allow the extension .res for its inputs.
I have a tcc I built recently from the mob using the busybox Grichka made
for us poor Windows users. Which file should I check to add .res extension
to the allowed inputs for the preprocessor?

See the -xc option. As in
$ windres --preprocessor="tcc -E -xc -DRC_INVOKED" -O coff ...

winresrc.h (needed by windows.h with RC_INVOKED) and dependencies
can be found in the winapi-full-for-0.9.27 pack.

-- gr


Regards
Antonio





reply via email to

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