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: Antoni Gual Via
Subject: Re: [Tinycc-devel] Windows: To add .res to the extensions allowed by the preprocessor?
Date: Mon, 14 Mar 2022 09:25:26 +0100

Thanks, grischka!
This tip should be in the Windows help file..

Antonio

Missatge de grischka <grishka@gmx.de> del dia dv., 11 de març 2022 a les 19:04:
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



_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

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