User forums > Help

Debugging issues

(1/2) > >>

Robt800:
Hi, I'm really quite new to programming (at least C - I come from a PLC background) - hence I've only been using code blocks a little while.

I've configured it to use cygwin on a windows 10 machine and everything is generally good.  However when I debugg I get the following error message appearing:

Cannot open file: /cygdrive/c/Personal/Learning/Programming/C_Language/Programs/Code_Chalenges/main.c

Now it still allows me to debugg - but it is annoying and I note that the compiler seems to freeze quite a bit and I have to stop the windows process 'cb_console_runner.exe' to get the compiler to re-run.

Any help/ pointers would be appreciated
Thanks
Rob

BlueHazzard:

--- Quote --- I have to stop the windows process 'cb_console_runner.exe' to get the compiler to re-run.
--- End quote ---
Is your program exiting properly?
Can you reproduce this with a minimal hello world example?
The console runner does only run as long as your program runs.
What version of codeblocks are you using?

oBFusCATed:
This is a known problem, unfortunately no one using cygwin is providing patches to fix this problem.
The best workaround is to not use cygwin, but just some other gcc port like the mingw or mingw-w64 ones.

Robt800:
Hi BlueHazzard - thanks for the reply.  It exits properly sometimes...
Absolute minimal code will create the fault.  Code blocks is version 17.12

oBFusCATed - great...
Is there really any difference (advantages?) to using cygwin vs mingw?

Thanks

stahta01:

--- Quote from: Robt800 on June 24, 2019, 08:57:07 pm ---Hi BlueHazzard - thanks for the reply.  It exits properly sometimes...
Absolute minimal code will create the fault.  Code blocks is version 17.12

oBFusCATed - great...
Is there really any difference (advantages?) to using cygwin vs mingw?

Thanks

--- End quote ---

If you are porting Linux/Unix code to Windows cygwin GCC is better/easier for networking related stuff.

You might wish to look at MSys2; but, till you state why you are using CygWin it is hard to help you.

Code::Blocks on windows is normally used with MinGW GCC; MinGW64 is better than mingw.org GCC in my opinion.

NOTE: Cygwin has option to install mingw GCC compiler; and, that might be a thing to try.

Tim S.

Navigation

[0] Message Index

[#] Next page

Go to full version