Cygwin with CodeBlocks debugger error

I have Code Blocks 12.11 and I have Cygwin 1.7.27 installed. I have configured C::B to run the Cygwin compiler and it works, but when I try to run the debugger from the Code Blocks environment I get the error:

Cannot open file /cygdrive/c/some_path/main.c

At /cygdrive/c/some_path/main.c:15

If I try to run gdb on the same file from the cygwin command line interface, it works.

Can somebody please help me fix this problem?


A way to make it work is adding a string value under

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2

HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2


name = cygdrive prefix

value = /cygdrive

If the folders do not exist you have to create them manually.

I have the same problem and this fix does not work if Cygwin is installed separately and then Code::Blocks is installed later.

I am using Code::Blocks version 13.12 and GDB version 7.6.5.

Need Your Help

Multiple linear gradients left top directions

css css3 gradient

I need to create a square element with gradients to achieve same way as border or box-shadow, because when skewing and rotating the element a slight line appear on the border.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.