Hi
a time ago I installed Code::Blocks 8.02 with MinGW included on Windows Vista Home Premium (32bit).
Now I read on the CodeBlocks homepage that the included MinGW version wouldn't work reliable with Windows Vista. I can't confirm this for I never had problems with Vista and this MinGW version.
But I have two questions and I didn't find the answers yet:
1. How can I find out what version of MinGW or GCC I use? I found out that I must enter "g++ -v", but where must I enter this? In CodeBlocks or the Windows Console? And will this tell me the version of MinGW or GCC?
2. If I want to upgrade to a newer MinGW version, how can I do this with the CodeBlocks version that has the MinGW included? Must I uninstall the older MinGW before and if yes, how? And what is to do next?
I know these are beginner questions but I searched this board and also Google and didn't find the answers. So I would be very glad if you helped me!
Thanks
Sechem
Quote from: Sechem on March 09, 2010, 11:44:49 AM
1. How can I find out what version of MinGW or GCC I use? I found out that I must enter "g++ -v", but where must I enter this? In CodeBlocks or the Windows Console? And will this tell me the version of MinGW or GCC?
g++ -v will give you the version of the c++ compiler
This command should be executed in a console. One note g++ should be visible at the place you type it (the easiest way is to navigate to the folder g++/gcc is located)
Ok, thank you!
I navigated to C:\Program Files\CodeBlocks\MinGW\bin and typed g++ -v.
After a few lines I see:
"gcc version 3.4.5 (mingw-vista special)"
So am I already using a Vista-compatible version? I thought that I had installed the one included with CodeBlocks.
Can someone help me with my second question too?
Looking at the path, it seems you're using the one installed with C::B,
The easiest way is to uninstall C::B, then install it one of the TDM GCC releases, the install C::B and don't install the compiler coming with the installer (hope there is a check for that)
Another possibility is to use a nightly :)
Quote from: Sechem on March 09, 2010, 12:33:55 PM
Ok, thank you!
I navigated to C:\Program Files\CodeBlocks\MinGW\bin and typed g++ -v.
After a few lines I see:
"gcc version 3.4.5 (mingw-vista special)"
So am I already using a Vista-compatible version? I thought that I had installed the one included with CodeBlocks.
Can someone help me with my second question too?
However you got that version of MinGW, it would appear that it is Vista-compatible. This would appear to be validated by your earlier statement
Quote from: Sechem on March 09, 2010, 11:44:49 AM
I can't confirm this for I never had problems with Vista and this MinGW version.
If it ain't broke, don't fix it 8)
Ringo
Ok, I reinstalled CodeBlocks (this time the version without MinGW included) and installed MinGW with the installer. Finnaly I told CodeBlocks to auto-detect the new compiler path and it worked.
So far so good, but now there is another question:
http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista (http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista)
This is how to make MinGW work with Vista, but I don't have to do this steps. I've tested it and it works without executing these steps. Do you know the reason?
the R3 release worked with Vista the ones before all had minor to major bugs.
Tim S.
My first post here.
I'm a semi-newb to C++ and real newb to CodeBlocks.
I'm relearning C++. I took a class on it around 2001. I've used VB off and on for a few years since then.
I just wanted to know, if everything appears to be working from the original download, do I need to install the latest "nightly" for any reason? (my specs and CB version is below)
I've been reading for a couple of days now and some of this is a bit daunting. I also use MS Visual C++ but want to learn something other than a MS product for coding C++.
specs:
codeblocks-8[1].02mingw-setup.exe (downloaded setup file) ... downloaded 3/8/10
gcc version 3.4.5 (mingw-vista special)
Windows XP Professional Version 2002, S.P. 3
Codie, if 8.02 works for you, you don't have to install the nightly...
The nightlies have more features, bugfixes and so on...