September 21, 2014
On Sunday, 21 September 2014 at 22:07:47 UTC, Cassio Butrico wrote:
> On Sunday, 21 September 2014 at 21:41:41 UTC, ketmar via Digitalmars-d-learn wrote:
>> On Sun, 21 Sep 2014 20:13:41 +0000
>> Cassio Butrico via Digitalmars-d-learn
>> <digitalmars-d-learn@puremagic.com> wrote:
>>
>>> how to compile in mingw-w64 resource compiler?
>> it tooks the standard text .rc files and produces .res of COFF. smth
>> like:
>>
>> === r.rc ===
>>  #include "windows.h"
>>  1024 ICON "icon.ico"
>>
>> then invoke windres from mingw like:
>>
>>  windres.exe -i r.rc -o r.res
>>
>> and it will produre .res file that can be linked with ms linker (if i
>> remember it right).
>>
>> take it all with a grain of salt though, i don't have windows and ms
>> tools to check it.
>
> ok I'll try doing what you said,
> Thanks for the tip.

The problem is how to convert COFF r.res in r.res OMF.

do not know if there is a way that I found on the net did not help me.
It is a little hard not having someone with the same operating systema to help me.

But anyway Thanks, learned a few new things today.
September 21, 2014
On Sun, 21 Sep 2014 23:46:05 +0000
Cassio Butrico via Digitalmars-d-learn
<digitalmars-d-learn@puremagic.com> wrote:

> The problem is how to convert COFF r.res in r.res OMF.
resulting '.res' is not COFF, it's "windows resource file format". some linkers supports it directly, but i'm not sure about VS linker.


September 22, 2014
On Sunday, 21 September 2014 at 23:53:34 UTC, ketmar via Digitalmars-d-learn wrote:
> On Sun, 21 Sep 2014 23:46:05 +0000
> Cassio Butrico via Digitalmars-d-learn
> <digitalmars-d-learn@puremagic.com> wrote:
>
>> The problem is how to convert COFF r.res in r.res OMF.
> resulting '.res' is not COFF, it's "windows resource file format". some
> linkers supports it directly, but i'm not sure about VS linker.

right, .res is not COFF,
when compiling in dmd.
dmd r.res test.d works
but
dmd -m64 r.res test.d of error in r.res

and that's it.
September 22, 2014
On Monday, 22 September 2014 at 00:12:11 UTC, Cassio Butrico wrote:
> On Sunday, 21 September 2014 at 23:53:34 UTC, ketmar via Digitalmars-d-learn wrote:
>> On Sun, 21 Sep 2014 23:46:05 +0000
>> Cassio Butrico via Digitalmars-d-learn
>> <digitalmars-d-learn@puremagic.com> wrote:
>>
>>> The problem is how to convert COFF r.res in r.res OMF.
>> resulting '.res' is not COFF, it's "windows resource file format". some
>> linkers supports it directly, but i'm not sure about VS linker.
>
> right, .res is not COFF,
> when compiling in dmd.
> dmd r.res test.d works
> but
> dmd -m64 r.res test.d of error in r.res
>
> and that's it.

Does anyone managed to compile a one resource on 64 bit windows.
September 22, 2014
You probably compile resource to compiled resource format. If you compile it to coff, linker should accept it.
1 2
Next ›   Last »