www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how to create and compile reesources for dmd 64

reply "Cassio Butrico" <cassio_butrico ig.com.br> writes:
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.
Sep 19 2014
next sibling parent reply "K.K." <trampzy yahoo.com> writes:
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.
Sep 20 2014
parent reply "Cassio Butrico" <cassio_butrico ig.com.br> writes:
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.
Sep 20 2014
parent "Cassio Butrico" <cassio_butrico ig.com.br> writes:
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.
Sep 20 2014
prev sibling next sibling parent reply "Kagamin" <spam here.lot> writes:
Can depend on how you compile resources.
Sep 21 2014
parent reply "Cassio Butrico" <cassio_butrico ig.com.br> writes:
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.
Sep 21 2014
parent reply "Kagamin" <spam here.lot> writes:
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.
Sep 21 2014
parent reply "Cassio Butrico" <cassio_butrico ig.com.br> writes:
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.
Sep 21 2014
parent reply ketmar via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
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: =3D=3D=3D r.rc =3D=3D=3D #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.
Sep 21 2014
parent reply "Cassio Butrico" <cassio_butrico ig.com.br> writes:
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.
Sep 21 2014
parent reply "Cassio Butrico" <cassio_butrico ig.com.br> writes:
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.
Sep 21 2014
parent reply ketmar via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
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.
Sep 21 2014
parent reply "Cassio Butrico" <cassio_butrico ig.com.br> writes:
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.
Sep 21 2014
next sibling parent "Cassio Butrico" <cassio_butrico ig.com.br> writes:
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.
Sep 21 2014
prev sibling parent "Kagamin" <spam here.lot> writes:
You probably compile resource to compiled resource format. If you 
compile it to coff, linker should accept it.
Sep 22 2014
prev sibling parent "kiran kumari" <kiranfabzen gmail.com> writes:
`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.
see more example http://techgurulab.com/course/java-quiz-online/
Sep 24 2014