Author Topic: CB 8.02 with MinGW 5.1.6 >>> mingw32-g++.exe doesn't exist  (Read 9270 times)

Offline lasdertul

  • Single posting newcomer
  • *
  • Posts: 3
CB 8.02 with MinGW 5.1.6 >>> mingw32-g++.exe doesn't exist
« on: April 29, 2010, 06:20:02 pm »
Hi, I have Windows XP, and I installed CB 8.02 without any compilers (I think the bundled install pack came with the older MinGW 4.5.2), and then downloaded and installed MinGW 5.1.6.

After starting CB 8.02, I went to Settings >> Compiler and debugger. In 'Selected compiler', I left the default value: GNU GCC Compiler. Then I went to the tab 'Toolchain executables' and I realized several of the exe files it was asking for didn't exist in the install dircetory of MinGW 5.1.6. Most importantly, I guess, was mingw32-g++.exe, for which the closest I have is mingw32-gcc.exe. But also other files, like make.exe.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: CB 8.02 with MinGW 5.1.6 >>> mingw32-g++.exe doesn't exist
« Reply #1 on: April 29, 2010, 07:54:28 pm »
That means you did not install the necessary files.
They are located in several different packages.

I suggest using TDragons MinGW installer (gcc 4.4) : http://www.tdragon.net/recentgcc/.

Offline lasdertul

  • Single posting newcomer
  • *
  • Posts: 3
Re: CB 8.02 with MinGW 5.1.6 >>> mingw32-g++.exe doesn't exist
« Reply #2 on: April 29, 2010, 10:54:11 pm »
I can't believe what's happening. I just can't install something as elemental as a compiler. How can there not be some simple, bundled, all-in-one download for something as basic as a compiler?

I've tried to get the files in the previous post. I think sourceforgenet is having problems today, the download is very slow and stops completely before finishing. In desperation, I tried to get the Microsoft C++ Express compiler. I downloaded the 2.5 MB file, which then connected to the internet, downloaded 100 MB, told me the whole setup was going to occupy 1 GB (! wow, then again, how typical), and when it finsihed installing it said I needed to reboot the PC. I did, and nothing happened! There's no start menu entry, I've searched the directories, there's nothing. Now I tried to download the CB 8.02 installer again, and the download is very slow and it stops after a while. Sourceforgenet, again.Yesterday it worked fine. It's incredible, I'm trying to install one of the most basic, elemental programs you can think of, and it's a nightmare. I still can't do it.

Assuming I'll be able to get CB 8.02 later, is there some other compiler I could download that would work with CodeBlocks, besides mingw and Microsoft?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: CB 8.02 with MinGW 5.1.6 >>> mingw32-g++.exe doesn't exist
« Reply #3 on: April 29, 2010, 11:22:24 pm »
I'm trying to install one of the most basic, elemental programs you can think of, and it's a nightmare. I still can't do it.
Haha, installing compiler is one of the most error prone tasks, ever...

The VC compiler should be in C:\program files\Microsoft Visual [blabla]\ .... look there for cl.exe
On the TDragon's site there is all in one automatic installer, I use it and it works ( http://sourceforge.net/projects/tdm-gcc/files/TDM-MinGW%20Installer/1.908.0/tdm-mingw-1.908.0-4.4.1-2.exe/download )
(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 lasdertul

  • Single posting newcomer
  • *
  • Posts: 3
Re: CB 8.02 with MinGW 5.1.6 >>> mingw32-g++.exe doesn't exist
« Reply #4 on: April 30, 2010, 07:13:35 pm »
Thanks to all, I've finally compiled and ran my first program. Now all I'd need is a 'wait' function so I can see the example programs I'm typing before they disappear in a millisecond in the DOS window when I run the EXE!

What I had to do was:

1) Get codeblocks-8.02-setup.exe from http://www.codeblocks.org/downloads/5 and install.
2) Get tdm-mingw-1.908.0-4.4.1-2.exe from http://www.tdragon.net/recentgcc/ and install.
3) Just to be sure, after starting CodeBlocks, go to Settings >> Compiler & Debugger >> Toolchain exceutables, and make sure all the directories and paths are correct. Which they are.

Pretty simple, in the end. I still don't understand why the other compiler I tried, MS Visual C++ 2008 Express, didn't work. It installed, asked me to reboot, and afterwards, nothing! Not even an entry in the start menu. Whatever. Thanks. Feeling really good, now.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: CB 8.02 with MinGW 5.1.6 >>> mingw32-g++.exe doesn't exist
« Reply #5 on: April 30, 2010, 08:57:45 pm »
Thanks to all, I've finally compiled and ran my first program. Now all I'd need is a 'wait' function so I can see the example programs I'm typing before they disappear in a millisecond in the DOS window when I run the EXE!

Project -> Properties -> Build Targets -> Type = Console application and there is a checkbox "wait program...."
(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!]