Author Topic: Install newer version of MinGW  (Read 3396 times)

Offline Sechem

  • Newcomer
  • *
  • Posts: 9
Install newer version of MinGW
« on: March 09, 2010, 11:44:49 am »
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 7785
Re: Install newer version of MinGW
« Reply #1 on: March 09, 2010, 12:12:31 pm »
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)
<debugger plugin maintainer>
(most of the time I ignore long posts)

Offline Sechem

  • Newcomer
  • *
  • Posts: 9
Re: Install newer version of MinGW
« Reply #2 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 7785
Re: Install newer version of MinGW
« Reply #3 on: March 09, 2010, 12:45:50 pm »
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 :)
<debugger plugin maintainer>
(most of the time I ignore long posts)

Offline rcoll

  • Almost regular
  • **
  • Posts: 142
Re: Install newer version of MinGW
« Reply #4 on: March 09, 2010, 01:24:41 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

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

Offline Sechem

  • Newcomer
  • *
  • Posts: 9
Re: Install newer version of MinGW
« Reply #5 on: March 09, 2010, 03:21:01 pm »
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
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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 4474
    • My Best Post
Re: Install newer version of MinGW
« Reply #6 on: March 09, 2010, 07:09:25 pm »
the R3 release worked with Vista the ones before all had minor to major bugs.

Tim S.
C Programmer working to learn more about C++.
Compiling CB Trunk against wxWidgets WX_3_0_BRANCH branch.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org/index.php?title=Main_Page

Offline codie

  • Newcomer
  • *
  • Posts: 8
Re: Install newer version of MinGW
« Reply #7 on: March 09, 2010, 07:54:44 pm »
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 7785
Re: Install newer version of MinGW
« Reply #8 on: March 09, 2010, 08:28:45 pm »
Codie, if 8.02 works for you, you don't have to install the nightly...

The nightlies have more features, bugfixes and so on...
<debugger plugin maintainer>
(most of the time I ignore long posts)