User forums > Using Code::Blocks
64bit programs in backtics?
cacb:
--- Quote from: MortenMacFly on November 08, 2015, 07:24:06 pm ---Short question: Aren't the compiler (...) tools of the MinGW64 toolchain all pure, native 64 bit tools? This works pretty well. Especially if it is wrapped in a cmd.exe context I see no reason why this should not work.
--- End quote ---
I don't use MinGW in any form, but a quick search shows the existence of Windows mingw-w64 cross compiler (i.e. x86 tools)
http://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win64%20compiler/
I think it depends on exactly what you are using.
oBFusCATed:
Have you checked what ExpandBackticks function in our codebase does?
wxExecute has different modes and each one behaves differently.
cacb:
--- Quote from: oBFusCATed on November 08, 2015, 09:01:04 pm ---Have you checked what ExpandBackticks function in our codebase does?
wxExecute has different modes and each one behaves differently.
--- End quote ---
I just checked.
My fist test was like the line in sdk/globals.cpp:870
wxExecute(cmd, output, wxEXEC_NODISABLE);
Now I tried
wxExecute(_T("cmd /c ") + cmd, output, wxEXEC_NODISABLE);
No difference observed.
oBFusCATed:
Then you'll have to either debug codeblocks or modify it to log something to see what commands are executed and what is their output.
cacb:
After reporting the problems, doing the tests and finding it should have worked, I went back and tried the original compile. To my surprise now it worked also when running 64bit in backtick! So it looks like I worked from the wrong assumption. Sorry about that.
I am now wondering whether I saw what Tim S. was talking about, intermittent behaviour when running in backticks. Maybe it was for example somehow taking too long to load the program, and something timed out, but once the OS cached it it worked. Just a guess.
Anyhow, explaining the problem seems to have fixed it :-) Sorry for the trouble. But now we know at least that it is possible to "wxExecute" a 64bit program from a 32 bit host program.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version