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

2022-03-14 Thread Antoni Gual Via
Thanks, grischka!
This tip should be in the Windows help file..

Antonio

Missatge de grischka  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
>
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


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

2022-03-11 Thread grischka

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


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

2022-03-10 Thread Antoni Gual Via
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?

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