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

Modification causes program to crash

<< < (2/2)

stahta01:
THE BAD OPTIONS DID NOT SET THEMSELVES!!!

Learn how to use your Tools! Its a poor worker who blames their tools for their problems.

Tim S.

osdt:

--- Quote from: zachris on April 14, 2015, 03:51:47 pm ---I can copy a old (backup version) of the code to my programming directory. I load this project into Code::Blocks and it compiles and runs just fine.
--- End quote ---

Maybe you're running the old (backup) executable?


--- Quote from: zachris on April 14, 2015, 03:51:47 pm ---mingw32-g++.exe -Wall -fexceptions -g -march=corei7-avx -O3 -Wfloat-equal -Wmissing-include-dirs -Wswitch-enum -std=c++11 -Wfatal-errors -Wall -IC:\GnuWin32\include -c "D:\__GNU analyze\biomechanics.cpp" -o obj\Debug\biomechanics.o
...
Process returned -107374195 (0xC000001d)   execution time: 3.682 s
--- End quote ---

The error-code could be caused by an unhandled exception (illegal instruction?). Does your CPU support AVX instructions? If not, remove the option '-march=corei7-avx' (and -O3 for debug builds).

zachris:
I'm not running an old backup executable -- I do not back up the executable.

My CPU does support AVX instructions, and this option has been in place for both the working a non-working versions of the code. Nonetheless, I tried switching off that option. It does not make a difference in the outcome.

The bottom line here is that I do not (did not) change anything with CodeBlocks. I merely edited the program code and even removed the edits. The code then compiles, but the program does not run.

BlueHazzard:
what was your exact command when you compiled it with command line, so that it worked?

stahta01:

--- Quote from: BlueHazzard on April 14, 2015, 07:15:12 pm ---what was your exact command when you compiled it with command line, so that it worked?

--- End quote ---

FYI: They are likely linking to very old binary that might NOT work with a newer version of MinGW GCC.

--- Quote ---11 July 2006

--- End quote ---
From http://gnuwin32.sourceforge.net/packages/gsl.htm

Tim S.

Navigation

[0] Message Index

[*] Previous page

Go to full version