User forums > Help
problem with debugging
MortenMacFly:
--- Quote from: delta1994 on October 28, 2012, 03:07:47 pm ---I also have set the breakpoints(not these things you quoted),
--- End quote ---
? :o
I meant you need to correct your compiler's flags not to mix the debug (-g) with optimisation (-o3) flags. This has nothing to do with debugging in the first place, but compiling correctly for debugging purposes.
delta1994:
--- Quote from: MortenMacFly on October 28, 2012, 07:48:10 pm ---
--- Quote from: delta1994 on October 28, 2012, 03:07:47 pm ---I also have set the breakpoints(not these things you quoted),
--- End quote ---
? :o
I meant you need to correct your compiler's flags not to mix the debug (-g) with optimisation (-o3) flags. This has nothing to do with debugging in the first place, but compiling correctly for debugging purposes.
--- End quote ---
Sorry for my misunderstanding.I will try.
delta1994:
--- Quote from: MortenMacFly on October 28, 2012, 07:48:10 pm ---
--- Quote from: delta1994 on October 28, 2012, 03:07:47 pm ---I also have set the breakpoints(not these things you quoted),
--- End quote ---
? :o
I meant you need to correct your compiler's flags not to mix the debug (-g) with optimisation (-o3) flags. This has nothing to do with debugging in the first place, but compiling correctly for debugging purposes.
--- End quote ---
I set the debug flags and tried again,but it didn't work as well.
Jenna:
The debug-flag is set (-g), but you also have to remove the optimization flags(s). -O3 in your case.
Debugging optimized code might work or not, depending on whhat the compiler really does, but it's very likely not to work.
delta1994:
--- Quote from: jens on November 02, 2012, 08:11:11 am ---The debug-flag is set (-g), but you also have to remove the optimization flags(s). -O3 in your case.
Debugging optimized code might work or not, depending on whhat the compiler really does, but it's very likely not to work.
--- End quote ---
With the -o3 removed,it works now.Thank you for your help and patience!
Navigation
[0] Message Index
[*] Previous page
Go to full version