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

GCC 4.1.2 available (now relocatable!)

<< < (7/13) > >>

TDragon:

--- Quote from: nenin on March 07, 2007, 12:53:57 am ---mingw is c:\wingw
codeblocks is on c:\bin\codeblocks
I made some tests exactly now: old code (from 4.1.1) are debuged normally. Issue is with debug version from 4.1.2
I attached some project, it is placed in c:\MinGW\projects\hello_tst\
Errors with lost connection gdb<-> codeblocks recovered by rollback to older svn.

--- End quote ---

Here are the steps I took to duplicate your setup as closely as possible:
1. Downloaded CB_20070305_rev3665_win32.7z (the latest nightly at the time of your post) and wxmsw26u_gcc_cb_wx2.6.3p2AndCbPatch_version3.7z and extracted them to C:\bin\codeblocks
2. Created empty directory C:\mingw and extracted binutils-2.17.50-20060824-1.tar.gz, mingw32-make-3.81-1.tar.gz, mingw-runtime-3.11.tar.gz, w32api-3.7.tar.gz, and gdb-6.3-2.exe there
3. Removed references to my main MinGW installation from my PATH environment variable (as a result of which I also needed to copy mingwm10.dll to C:\bin\codeblocks)
4. Extracted "hello_tst.7z" to C:\hello_tst
5. Ran the newly installed nightly build
6. Went to Settings->Compiler and debugger, removed all paths in "Search directories" and changed "Compiler's installation directory" to "C:\mingw"
7. Opened C:\hello_tst\hello_tst.cbp (here I was informed that the project was in the older 1.5 format and would be upgraded to the 1.6 format)
8. Built the project with Ctrl+F9 (no errors, created hello_tst.exe)
9. Hit F8 to debug the program; no errors, exited normally with status code 0
As you can see, everything worked correctly for me.

Some thoughts:
- Using what was the latest nightly at the time of your post ("svn build  rev 3665 (2007-02-10 13:44:04)   gcc 3.4.5 Windows/unicode"), Code::Blocks informed me that your provided sample project's version was older than the current internal version, and updated it. Although I doubt this is the source of your problem, you should still try recreating your project from scratch, or at least saving it in the newer version.
- Did you overwrite any of the files from my GCC 4.1.2 with the files from the rest of the MinGW archives? If so, try re-extracting my .7z into your MinGW directory and overwriting files as necessary.
- Are all the paths and executables in C::B's compiler settings correct?

nenin:
My projects are placed in
c:\mingw\projects\****
I reinstall everything (including last CB svn), gcc 4.1.2 was unpacked last (over refreshed GDB). Results are the same. I made a brand new project placed at c:\MinGW\projects\gdb_bugs01\*** (attached). I can not include binary- it is to big.
Problems with popup arises if I put a breackpoint before press F8. If there are no breakpoints, gdb running OK.


[attachment deleted by admin]

TDragon:

--- Quote from: nenin on March 07, 2007, 04:04:07 pm ---Problems with popup arises if I put a breackpoint before press F8. If there are no breakpoints, gdb running OK.

--- End quote ---
I'm still unable to reproduce this problem. Extracted gdb_bugs01.7z to C:\mingw\projects\gdb_bugs01, opened gdb_bugs01.cbp with C::B, hit Ctrl+F11 for a full rebuild, set a breakpoint at main.cpp:6, hit F8 to debug. Breakpoint was hit, everything worked as expected (I was able to step and continue), exited normally. This was all on my Win2k SP4 machine; I repeated the process on my WinXP SP2 machine and was still unable to reproduce the problem.

The message "Application popup: gdb.exe - No Disk : There is no disk in the drive. Please insert a disk into drive \Device\Harddisk4\DR6" seems to indicate that there is something unusual going on with your filesystem. Unfortunately I have no idea what it could be.

nenin:

--- Quote ---The message "Application popup: gdb.exe - No Disk : There is no disk in the drive. Please insert a disk into drive \Device\Harddisk4\DR6" seems to indicate that there is something unusual going on with your filesystem. Unfortunately I have no idea what it could be.
--- End quote ---
I`m afraid you are right. I probably must reinstall windows. I can not find any traces of \Device\Harddisk4\DR6 in registry.  :(

mandrav:

--- Quote from: nenin ---And I have a multy-card-reader with 4 letters.   
--- End quote ---

--- Quote from: nenin ---I`m afraid you are right. I probably must reinstall windows. I can not find any traces of \Device\Harddisk4\DR6 in registry.
--- End quote ---

I used to have similar behaviour with Gimp on windows. As it turned out, it was a known problem. And I also had a multi-card reader installed at the time. Disabling that reader device solved everything.
That may spare you a windows re-install, maybe for nothing...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version