Code::Blocks
October 26, 2014, 02:48:40 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: The new Release 13.12 is out! You can download binaries for windows, mac and many major linux distros from  http://www.codeblocks.org/downloads/26 .
 
   Home   Help Search Login Register  :: WebsiteWiki  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Install newer version of MinGW  (Read 3261 times)
Sechem
Newcomer
*
Offline Offline

Posts: 9


« 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
Logged
oBFusCATed
Developer
Lives here!
*****
Online Online

Posts: 7666


« 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)
Logged

<debugger plugin maintainer>
(most of the time I ignore long posts)
Sechem
Newcomer
*
Offline Offline

Posts: 9


« 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?
Logged
oBFusCATed
Developer
Lives here!
*****
Online Online

Posts: 7666


« 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 Smiley
Logged

<debugger plugin maintainer>
(most of the time I ignore long posts)
rcoll
Almost regular
**
Offline Offline

Posts: 142


« 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  Cool

Ringo
Logged
Sechem
Newcomer
*
Offline Offline

Posts: 9


« 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?
Logged
stahta01
Lives here!
****
Online Online

Posts: 4434


WWW
« 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.
Logged

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
codie
Newcomer
*
Offline Offline

Posts: 8


« 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
Logged
oBFusCATed
Developer
Lives here!
*****
Online Online

Posts: 7666


« 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...
Logged

<debugger plugin maintainer>
(most of the time I ignore long posts)
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!