User forums > Help
Trouble with Nightly builds
TDragon:
--- Quote from: PhiLho on April 25, 2006, 02:12:29 pm ---Thanks for the big, bold advice! :)
But it would be more useful in:
http://www.codeblocks.org/nightly/
http://wiki.codeblocks.org/index.php?title=FAQ (if I am the 256th one to ask...)
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks
which are the places I looked around...
--- End quote ---
A little note to the effect of "The nightly builds are self sufficient; please do not extract them on top of a previous Code::Blocks installation" would probably not be amiss in the Nightly Build posts.
--- Quote ---OK, so I moved the unzipped files (and folders) to a Nightly build folder under the CodeBlocks one, and I restored the files I moved earlier. I added mingwm10.dll wxmsw26_gcc_cb.dll wxmsw26u_gcc_cb.dll to this directory and restarted C::B.
I got exactly the same errors, which doesn't surprise me much...
So, the next two stupid questions (thanks for your patience!):
- Does I have to uninstall RC2 and remove all traces, then quietly unzip the NB?
- What does happen of all the files the installation created (headers, libs, compiler...)?
The site is advertizing the NB, which is fine, but it is a bit light on how to use it...
And out of curiosity, why overwritting the files doesn't work? Beside "It's badTM", like crossing rays in GhostBusters...
--- End quote ---
No, you don't necessarily need to do this. Unfortunately, you've produced the dreaded DLL Hell , wherein different versions of one or more DLLs and executables get mixed with each other. This is never a good thing -- the executable will load a DLL and look for certain functions in it that were in the version the executable was linked with, but that version has been through a few rewrites since the older version of the DLL it's trying to use, so you get missing functions and variables, and --boom--, nothing works anymore.
What you need to have done is ignored or deleted your RC2 installation altogether. If you just download three components from killerbot's Nightly Build post -- the wxWidgets DLL, the mingwm10 DLL, and the Code::Blocks build -- and extract them to a single, otherwise empty directory, you are pretty much guaranteed to be able to run the nightly build [on Windows 2000 or XP]. If, however, any DLLs from RC2, or even an old enough nightly build, get mixed in with it, it'll crash.
Once you've done this, however, it won't know where to find your compiler. I recommend installing MinGW separately, using the 5.0.2 installer. This is not pertinent to your issue of DLL hell.
I see thomas has answered your questions pretty well while I was fiddling around with my post, but I'm going to stick it in anyway 'cause I hate to waste all this work :D.
tiwag:
--- Quote from: PhiLho on April 25, 2006, 02:12:29 pm ---So, the next two stupid questions (thanks for your patience!):
- Does I have to uninstall RC2 and remove all traces, then quietly unzip the NB?
- What does happen of all the files the installation created (headers, libs, compiler...)?
--- End quote ---
CB 1.0RC2 and any of the nightly builds can coexist nicely, just some problems can arise when you want CB have assigned to some file extensions like *.cbp etc.., Switch off the Settings which autoassigns the file extensions.
if you want to use the MinGW gcc tools with a NB, then let CB 1.0RC2 installed,
unzip the NB in a new folder and start it, then goto settings and adjust the gcc compiler pathes to your already installed version.
nothing fancy, business as usual ...
PhiLho:
Uninstalled RC2
It left:
- C:\Documents and Settings\<username>\.CodeBlocks (empty)
- C:\Documents and Settings\<username>\Application Data\codeblocks (with default.conf)
even after asking twice if I wanted to remove settings...
- All associations (HKCR -- c, cbp, cc, cg, cpp, cxx, d, h, hh, hpp, hxx, rc, workspace) in registry.
- Idem in HKCU\Software\Classes (a bug? Probably belongs to HKLM\SOFTWARE\Classes)
- HKCU\Software\Code::Blocks (empty)
- HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.c\OpenWithProgids (.c .cpp .cxx .h .hpp .hxx)
Messy... I delete all of the above.
I removed everything in the CodeBlocks installation directory.
I unzipped CodeBlocks_20060424_rev2377_win32_.7z
Then mingwm10.7z then wxmsw26u_gcc_cb.7z and wxmsw26_gcc_cb.7z
It failed to run... I found that share\CodeBlocks was empty! My unzipper (IZArc) failed to recursively unzip this directory!
So, that's the problem I had, and the reason why I had some missing directories...
Usually, it manages correctly such directory hierarchies, I suppose it is an issue with 7-Zip files.
Fortunately, I still have 7-Zip itself on my system, so I will use that.
Being stubborn, I restarted my initial setup: install RC2, move files and folders to replace (no risk of letting unwanted files), unzip the nighly build.
After all, there are interesting files in this release and I was lazy to download MingW...
Aaaand... It worked!
So, the problem was between my chair and the keyboard...
Sorry for the noise, althought it will make an interesting topic to search for other newbies...
Thank you for the informations and the helpfull hands. Next time I need help, I will register!
BTW, it is nice to allow casual posts like mine, I was motivated enough to register if needed, but sometime I just want to report some problems in a newly tested freeware and drop the idea because I don't necessarily want to be registered to yet another site... :-)
Michael:
--- Quote from: PhiLho on April 25, 2006, 04:51:52 pm ---Then mingwm10.7z then wxmsw26u_gcc_cb.7z and wxmsw26_gcc_cb.7z
--- End quote ---
You just need mingwm10.7z and wxmsw26u_gcc_cb.7z (UNICODE build). If you want an ANSI build then wxmsw26_gcc_cb.7z instead of wxmsw26u_gcc_cb.7z.
Best wishes,
Michael
Conan Kudo:
However, ANSI build has to be built to use the ANSI DLL...
Navigation
[0] Message Index
[*] Previous page
Go to full version