User forums > General (but related to Code::Blocks)
New compiler can compile CodeBlocks won't execute
Kat B:
Codeblocks version: 10.05
Long story short -- I installed a new version of the MinGW compiler in a different folder (hoping to keep the old and new). I copied the default compiler in CodeBlocks (under Settings > Compiler and Debugger) and changed the name of the copy of the compiler and the path in CodeBlocks under Settings > Compiler and Debugger > Toolchain executables.
I can compile! Yay!
Codeblocks doesn't run the executable when going to Build > Run. Changing the compiler back to the previous default, the code compiles AND CodeBlocks can run the executable. I think this means I can rule out the execution path in Project settings.
Anyone have any idea why I can compile and run under one compiler but not the new? Is there a setting I need to change?
Thanks!
Kat
gd_on:
You have also to change your system variable path because it certainly contain the "old" path to your previous compiler and not the new one.
More, give this new path a higher priority (place it before the old one), because Windows will choose the first one : dll names are probably the same !
gd_on
Kat B:
Done but no cigar :-(
Still not able to run the successfully compiled file from within Code::Blocks
oBFusCATed:
1. 10.05 is so old
2. Your compiler new compiler probably compiles executables which require extra dlls to work. Use dependency walker or something similar to fine what is needed. Then the easiest fix is to copy them next to your executable manually.
BlueHazzard:
Some error messages would also help...
Navigation
[0] Message Index
[#] Next page
Go to full version