Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: bobfre on June 29, 2008, 04:03:20 am

Title: 64bit to 32bit compatibility
Post by: bobfre on June 29, 2008, 04:03:20 am
I sent my mate the binary, it wouldnt open...niether would his went he went me his, so we thought scrap that, we had to make ourselves s.out files he sent me his and his program worked fine, i senthim mine and it says the program cannot run, nothing to do with any type of errors it just says it cant run.

bash: ./Calc3int: cannot execute binary file

Please if theres any resolves to this please can you post,

if i use the 32bit codeblocks to build this will it mean it will run?

Thanks

bob
Title: Re: 64bit to 32bit compatibility
Post by: bobfre on June 29, 2008, 01:07:36 pm
Come its not that hard of a question to answer

Please anyone
Title: Re: 64bit to 32bit compatibility
Post by: Biplab on June 29, 2008, 02:02:04 pm
Come its not that hard of a question to answer

Please anyone

Yes it's not difficult to answer when you provide appropriate informations. Following command (assuming you're using linux) may help you.

Code
ldd Calc3int

Make sure the output matches at both locations.
Title: Re: 64bit to 32bit compatibility
Post by: niteice on June 29, 2008, 06:20:04 pm
add -m32 to your compiler and linker flags.