User forums > General (but related to Code::Blocks)

windres option for mingw64

(1/2) > >>

reckless:
i know i know ! this doesnt sound like a codeblocks subject but hear me out :)

what im after is a way to set windres options in codeblocks for tdm's mingw64 since my project fails to link unless i add -F pe-i386 to windres options for the 32 bit builds (besides the -m32 in linker and cflags).

any ideas where i might look in codeblocks to set such an option ?.

maybe something for a proposal to set these flags automatically if you select 64 bit build in codeblocks ?.

Jenna:
It's a little hacky, but you can add it directly in the toolchain executables tab, but it would be used for all projects in this case.

reckless:
thanks jens.

i did try this earlier unfortunatly it wont work (atleast not on my win7 box) codeblocks just throws invalid executable error on me :(

maybe i need to add the options in quotes ? or `` hmm...

Jenna:

--- Quote from: reckless on February 18, 2011, 12:15:16 pm ---thanks jens.

i did try this earlier unfortunatly it wont work (atleast not on my win7 box) codeblocks just throws invalid executable error on me :(

maybe i need to add the options in quotes ? or `` hmm...

--- End quote ---
I just tried on win7 64bit with windres.exe -F pe-i386 without any quotes and it works.

reckless:
hmm strange now it works after i restarted codeblocks :)

ok all good then and thanks for the help.

Navigation

[0] Message Index

[#] Next page

Go to full version