User forums > Using Code::Blocks

64bit programs in backtics?

<< < (2/5) > >>

cacb:

--- Quote from: jens on November 08, 2015, 11:24:12 am ---The function is in sdk/globals.cpp:837 .
It calls wxExecute and caches the output, on windows it's run through "cmd /c " on other platforms it runs directly.
So this is most likely an issue with wxExecute .

--- End quote ---

Ok, I think I will try to confirm that by building a small console application and try to execute the program I am having issues with, using wxExecute. I can then try all combinations of x86 and x64 for both programs. This should make it clear if it is a wxExecute problem.


--- Quote from: oBFusCATed on November 08, 2015, 12:32:04 pm ---Is there any error printed somewhere? Does you program depend on some dll? If it does could it be that when run from inside cb it is not found?

--- End quote ---

I didn't see any messages, not sure where to look. I just didn't get any output at all via the backticks.  The program is simply a slight modification of https://sites.google.com/site/wxconfig/ and it does not refer to any dlls other than the runtime/system dll's (perhaps that is the problem).


MortenMacFly:
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.

stahta01:
To cacb:
Did you try saving the project with the back ticks; then closing the project.
Then, reopen the project.

I have never been able to edit back ticks in a windows project and have them work more than 50 % of the time.
No idea what I do that makes the changes randomly fail.

Tim S.

cacb:

--- Quote from: stahta01 on November 08, 2015, 07:34:16 pm ---To cacb:
Did you try saving the project with the back ticks; then closing the project.
Then, reopen the project.

I have never been able to edit back ticks in a windows project and have them work more than 50 % of the time.
No idea what I do that makes the changes randomly fail.

Tim S.

--- End quote ---

I have used backticks on Windows for several years without any problems (building for x86 so far).  I have many projects and open/close them all the time, every day.

Btw. My projects contain 4 build targets, build/release for the current MSVC compiler and the same for g++. Notice I don't use g++ under Windows, only Linux. I.e. I don't use MinGW anywhere. All my build targets use backticks, both on Windows and Linux.

cacb:

--- Quote from: cacb on November 08, 2015, 05:33:40 pm ---Ok, I think I will try to confirm that by building a small console application and try to execute the program I am having issues with, using wxExecute. I can then try all combinations of x86 and x64 for both programs. This should make it clear if it is a wxExecute problem.

--- End quote ---

I did write that test program "Test-wx-config" calling the client program "wx-config" using wxExecute and compiled both as x64 and x86, then ran all 4 combinations:

                      wx-config(x86)   wx-config(x64)
Test-wx-config(x86)      OK              OK
Test-wx-config(x64)      OK              OK

Apparently, all 4 combinations worked fine.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version