Thread overview | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
September 19, 2014 how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Hello everyone, When I create and compile resouces to 32 works perfect, but when I try to compilat of 64 error LNK1136: invalid or corrupt file. I do not know if it has to do with comverter COFF to OMF. can someone give me a light? Thank you for your attention. |
September 20, 2014 Re: how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cassio Butrico | On Friday, 19 September 2014 at 22:20:59 UTC, Cassio Butrico
wrote:
> Hello everyone,
> When I create and compile resouces to 32 works perfect, but when I try to compilat of 64 error
> LNK1136: invalid or corrupt file.
> I do not know if it has to do with comverter COFF to OMF.
> can someone give me a light?
> Thank you for your attention.
Somebody correct me if I'm wrong, but I'm pretty sure dmd doesn't
actually support or compile 64-bit, despite what it tries to tell
you.
If you really need 64bit than GDC will probably work.
|
September 20, 2014 Re: how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to K.K. | On Saturday, 20 September 2014 at 15:24:23 UTC, K.K. wrote:
> On Friday, 19 September 2014 at 22:20:59 UTC, Cassio Butrico
> wrote:
>> Hello everyone,
>> When I create and compile resouces to 32 works perfect, but when I try to compilat of 64 error
>> LNK1136: invalid or corrupt file.
>> I do not know if it has to do with comverter COFF to OMF.
>> can someone give me a light?
>> Thank you for your attention.
>
> Somebody correct me if I'm wrong, but I'm pretty sure dmd doesn't
> actually support or compile 64-bit, despite what it tries to tell
> you.
>
> If you really need 64bit than GDC will probably work.
DMD compila sim para 64 b.
e roda perfeitamente.
so não consigo compilar os resources.
Obrigado por tentar me ajudado voce foi o unico que tentou.
|
September 20, 2014 Re: how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cassio Butrico | On Saturday, 20 September 2014 at 20:33:36 UTC, Cassio Butrico wrote:
> On Saturday, 20 September 2014 at 15:24:23 UTC, K.K. wrote:
>> On Friday, 19 September 2014 at 22:20:59 UTC, Cassio Butrico
>> wrote:
>>> Hello everyone,
>>> When I create and compile resouces to 32 works perfect, but when I try to compilat of 64 error
>>> LNK1136: invalid or corrupt file.
>>> I do not know if it has to do with comverter COFF to OMF.
>>> can someone give me a light?
>>> Thank you for your attention.
>>
>> Somebody correct me if I'm wrong, but I'm pretty sure dmd doesn't
>> actually support or compile 64-bit, despite what it tries to tell
>> you.
>>
>> If you really need 64bit than GDC will probably work.
DMD compiles yes to 64 b.
and runs perfectly.
so I can not compile the resources.
Thanks for trying helping me you're the one who tried.
|
September 21, 2014 Re: how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cassio Butrico | Can depend on how you compile resources. |
September 21, 2014 Re: how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On Sunday, 21 September 2014 at 10:56:38 UTC, Kagamin wrote:
> Can depend on how you compile resources.
true, but I do not know what should I do to compile the resource so that it is accepted.
|
September 21, 2014 Re: how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cassio Butrico | MinGW resource compiler can compile to both res and coff. For ms AFAIK (didn't use) the compiled resource should be additionally converted to coff. |
September 21, 2014 Re: how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On Sunday, 21 September 2014 at 19:45:58 UTC, Kagamin wrote:
> MinGW resource compiler can compile to both res and coff. For ms AFAIK (didn't use) the compiled resource should be additionally converted to coff.
how to compile in mingw-w64 resource compiler?
never used mingw :(
instalai the minw64 today.
|
September 21, 2014 Re: how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cassio Butrico Attachments: | 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. |
September 21, 2014 Re: how to create and compile reesources for dmd 64 | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | 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.
|
Copyright © 1999-2021 by the D Language Foundation