Author Topic: Best location for mingw inside codeblocks or in c drive ?  (Read 492 times)

Offline R1S8K

  • Multiple posting newcomer
  • *
  • Posts: 10
Best location for mingw inside codeblocks or in c drive ?
« on: May 25, 2019, 01:53:11 pm »
Hello,

I wanted to upgrade my C++ compiler to C++11, so I followed a video on YouTube.

First of all, I have to mingw folders in my computer.

1. In c drive directly, it's 375mb and I don't know what is it for? Maybe I over downloaded it back in the days when I was installing codeblocks in my computer.

2. In codeblocks folder, it was 195mb, and after watching the video and downloading the mingw-get.exe, it's now 275mb. Also, I'm installing codeblocks in another drive than c.

So, anyway I installed the mingw-get.exe but the last step didn't work, as the files are installed, there's continuous error message.


Then I checked the gcc -v in the cmd in "F:\Program_Files\CodeBlocks\MinGW\bin" but it's the same older version 4.9.2.


What to do now?
« Last Edit: May 25, 2019, 05:02:33 pm by R1S8K »

Offline R1S8K

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Best location for mingw inside codeblocks or in c drive ?
« Reply #1 on: May 25, 2019, 02:26:18 pm »
I tried to install a fresh copy at C:, I deleted the previous one.

The new copy is 113mb. But I got this message at the end of the mingw-get.exe installation:

Code: [Select]
install: libiconv-1.14-4-mingw32-dll-2.tar.xz
 installing libiconv-1.14-4-mingw32-dll-2.tar.xz
install: libatomic-8.2.0-3-mingw32-dll-1.tar.xz
 installing libatomic-8.2.0-3-mingw32-dll-1.tar.xz
install: libgcc-8.2.0-3-mingw32-dll-1.tar.xz
 installing libgcc-8.2.0-3-mingw32-dll-1.tar.xz
install: libintl-0.18.3.2-2-mingw32-dll-8.tar.xz
 installing libintl-0.18.3.2-2-mingw32-dll-8.tar.xz
install: libgmp-6.1.2-3-mingw32-dll-10.tar.xz
 installing libgmp-6.1.2-3-mingw32-dll-10.tar.xz
install: libmpfr-3.1.5-2-mingw32-dll-4.tar.xz
 installing libmpfr-3.1.5-2-mingw32-dll-4.tar.xz
install: wsl-features-20190122-1-mingw32-cfg.tar.xz
 installing wsl-features-20190122-1-mingw32-cfg.tar.xz
install: mingwrt-5.2.1-mingw32-dll.tar.xz
 installing mingwrt-5.2.1-mingw32-dll.tar.xz
install: libstdc++-8.2.0-3-mingw32-dll-6.tar.xz
 installing libstdc++-8.2.0-3-mingw32-dll-6.tar.xz
install: libquadmath-8.2.0-3-mingw32-dll-0.tar.xz
 installing libquadmath-8.2.0-3-mingw32-dll-0.tar.xz
install: libgomp-8.2.0-3-mingw32-dll-1.tar.xz
 installing libgomp-8.2.0-3-mingw32-dll-1.tar.xz
install: libssp-8.2.0-3-mingw32-dll-0.tar.xz
 installing libssp-8.2.0-3-mingw32-dll-0.tar.xz
install: w32api-5.2.1-mingw32-dev.tar.xz
 installing w32api-5.2.1-mingw32-dev.tar.xz
install: mingwrt-5.2.1-mingw32-dev.tar.xz
 installing mingwrt-5.2.1-mingw32-dev.tar.xz
install: libmpc-1.0.3-2-mingw32-dll-3.tar.xz
 installing libmpc-1.0.3-2-mingw32-dll-3.tar.xz
install: libisl-0.18-2-mingw32-dll-15.tar.xz
 installing libisl-0.18-2-mingw32-dll-15.tar.xz
install: binutils-2.32-1-mingw32-bin.tar.xz
 installing binutils-2.32-1-mingw32-bin.tar.xz
install: gcc-core-8.2.0-3-mingw32-bin.tar.xz
 installing gcc-core-8.2.0-3-mingw32-bin.tar.xz
mingw-get: *** ERROR *** C:\MinGW\/libexec/gcc/mingw32/8.2.0/lto1.exe: extraction failed
mingw-get: *** ERROR *** unexpected end of archive reading content record
mingw-get: *** ERROR *** unexpected end of archive reading header record
install: gcc-c++-8.2.0-3-mingw32-bin.tar.xz
 installing gcc-c++-8.2.0-3-mingw32-bin.tar.xz
mingw-get: *** ERROR *** C:\MinGW\/libexec/gcc/mingw32/8.2.0/cc1plus.exe: extraction failed
mingw-get: *** ERROR *** unexpected end of archive reading content record
mingw-get: *** ERROR *** unexpected end of archive reading header record


I think there's an error at the end of the installation.


=====================================================================

Update:

I checked the version of the gcc at the new copy at C drive and it's 8.2.0. Should I move this folder to the one I'm using inside codeblocks folder or I just have to point codeblocks compiler to the mingw at C drive ?
« Last Edit: May 25, 2019, 02:29:19 pm by R1S8K »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11932
    • Travis build status
Re: Best location for mingw inside codeblocks or in c drive ?
« Reply #2 on: May 25, 2019, 02:58:34 pm »
If the compiler works you can setup C::B to use it. No need to move it around.
Older versions of mingw had problems if they aren't in x:/mingw and there is another version in such a folder.

It seems people are moving to using the mingw-w64 releases or at least they look to be a bit more stable, maintained and easier to install.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline R1S8K

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Best location for mingw inside codeblocks or in c drive ?
« Reply #3 on: May 25, 2019, 04:38:06 pm »
I deleted all the mingw folders in C::B folder and the one in C drive and now installing a fresh one with mingw-get.exe


Surprisingly ! it worked pretty well no errors too.

Code: [Select]
install: libiconv-1.14-4-mingw32-dll-2.tar.xz
 installing libiconv-1.14-4-mingw32-dll-2.tar.xz
install: libatomic-8.2.0-3-mingw32-dll-1.tar.xz
 installing libatomic-8.2.0-3-mingw32-dll-1.tar.xz
install: libgcc-8.2.0-3-mingw32-dll-1.tar.xz
 installing libgcc-8.2.0-3-mingw32-dll-1.tar.xz
install: libintl-0.18.3.2-2-mingw32-dll-8.tar.xz
 installing libintl-0.18.3.2-2-mingw32-dll-8.tar.xz
install: libgmp-6.1.2-3-mingw32-dll-10.tar.xz
 installing libgmp-6.1.2-3-mingw32-dll-10.tar.xz
install: libmpfr-3.1.5-2-mingw32-dll-4.tar.xz
 installing libmpfr-3.1.5-2-mingw32-dll-4.tar.xz
install: wsl-features-20190122-1-mingw32-cfg.tar.xz
 installing wsl-features-20190122-1-mingw32-cfg.tar.xz
install: mingwrt-5.2.1-mingw32-dll.tar.xz
 installing mingwrt-5.2.1-mingw32-dll.tar.xz
install: libstdc++-8.2.0-3-mingw32-dll-6.tar.xz
 installing libstdc++-8.2.0-3-mingw32-dll-6.tar.xz
install: libquadmath-8.2.0-3-mingw32-dll-0.tar.xz
 installing libquadmath-8.2.0-3-mingw32-dll-0.tar.xz
install: libgomp-8.2.0-3-mingw32-dll-1.tar.xz
 installing libgomp-8.2.0-3-mingw32-dll-1.tar.xz
install: libssp-8.2.0-3-mingw32-dll-0.tar.xz
 installing libssp-8.2.0-3-mingw32-dll-0.tar.xz
install: w32api-5.2.1-mingw32-dev.tar.xz
 installing w32api-5.2.1-mingw32-dev.tar.xz
install: mingwrt-5.2.1-mingw32-dev.tar.xz
 installing mingwrt-5.2.1-mingw32-dev.tar.xz
install: libmpc-1.0.3-2-mingw32-dll-3.tar.xz
 installing libmpc-1.0.3-2-mingw32-dll-3.tar.xz
install: libisl-0.18-2-mingw32-dll-15.tar.xz
 installing libisl-0.18-2-mingw32-dll-15.tar.xz
install: binutils-2.32-1-mingw32-bin.tar.xz
 installing binutils-2.32-1-mingw32-bin.tar.xz
install: gcc-core-8.2.0-3-mingw32-bin.tar.xz
 installing gcc-core-8.2.0-3-mingw32-bin.tar.xz
install: gcc-c++-8.2.0-3-mingw32-bin.tar.xz
 installing gcc-c++-8.2.0-3-mingw32-bin.tar.xz


Older versions of mingw had problems if they aren't in x:/mingw and there is another version in such a folder.

You are right, I think that's the reason I could not update mingw that is in C::B folder.



Tested
Code: [Select]
gcc -v with cmd, it's updated to 8.2.0 version :)

Thanks for the help,