User forums > Help
cannot exec cc1plus???
Unevolved:
Yeah, I'm running 32-bit Vista Ultimate. I installed the C::B version with MinGW bundled with it. Just in case, though, I reinstalled MinGW and made sure the g++ package was installed, and that didn't fix it.
Seronis:
First to the OP. Choose 'run' from the start menu and enter "SystemPropertiesAdvanced.exe" and edit your environment variables. At the beginning of your PATH variable add:
%GCC_ROOT_PATH%\bin;%GCC_ROOT_PATH%\libexec\gcc\mingw32\3.4.5;
And then make sure you create a new variable named GCC_ROOT_PATH and set it to your mingw root directory. Likely to be one of:
c:\mingw
OR
c:\program files\codeblocks\mingw
This will make sure that the gcc helper executables (cc1.exe,cc1plus.exe,collect.exe) are available to the system.
That out of the way:
--- Quote from: TDragon on April 09, 2008, 03:39:12 pm --- * Are you running Windows Vista?
* If so, are you using a version of MinGW/GCC without the Vista fix? (The version bundled with C::B 8.02 includes the Vista fix.)
* If not, did you install MinGW yourself and forget the g++ package?
--- End quote ---
I am also attempting to get C::B/mingw working on a Vista system. I manually installed mingw using all the patch2 files from mingw.org. Specifically I downloaded each of:
gcc-core-3.4.5-20060117-2.tar.gz
gcc-g++-3.4.5-20060117-2.tar.gz
binutils-2.18.50-20080109-2.tar.gz
mingw32-make-3.81-20080326.tar.gz
mingw-runtime-3.14.tar.gz
mingw-utils-0.3.tar.gz
w32api-3.11.tar.gz
and unzipped them to c:\dev\mingw. I am under the assumption (after reading the update log you posted at the mingw.org site) that all packages listed contain the latest vista fixes. At this point the compiler works fine but I fail at linking with:
--- Code: ---Compiling: main.cpp
Linking console executable: bin\Release\blah.exe
ld: crt2.o: No such file: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
--- End code ---
code
--- Quote ---#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
--- End quote ---
To my knowledge that file should be visible to the environment.
Compiler Search Directories:
--- Code: ---C:\dev\MinGW\include
C:\dev\MinGW\include\c++\3.4.5
C:\dev\MinGW\include\c++\3.4.5\backward
C:\dev\MinGW\include\c++\3.4.5\mingw32
C:\dev\MinGW\lib\gcc\mingw32\3.4.5\include
--- End code ---
Linker Search Directories:
--- Code: ---C:\dev\MinGW\lib
C:\dev\MinGW\lib\gcc\mingw32\3.4.5
--- End code ---
the file in question is located at C:\dev\MinGW\lib\crt2.o which is inside the first entry in my linker search dirs. I am a bit confused about what could be causing the problem and after reading thru the few entries i could locate on the forums (searching for crt2.0) and even googling (which had some links to DevC++ people with same problem) the only advice I found included adding paths that i've already got set.
When originally (quite awhile back) setting this up to work on my WinXP system I remember adding %GCC_ROOT_PATH%\mingw32\bin to my path in addition to just /bin, but looking at the directory layout on vista all files in mingw32/bin are already located in /bin so I dont see that as possibly helping.
Any suggestions? Any additional faqs/resources i should browse? I've already read http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista and even updated it (it forgot one entry for compiler includes) and Im now officially out of options.
Seronis
edit:
On a side note, on a friends vista system shortly after the 8.02 release I did get C::B installed using the prepackaged mingw and the only setup i remember doing there to get it to work was the environment variables and search directories. Any chance that last nights vista automatic updates broke vistas compatibility with mingw?
Unevolved:
I just read through http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista, and added a new directory under Toolchain Executables-> Add'l paths, and it works just fine now. I'm not going to touch it.
Thanks for the help, I'm sure I'll have some more questions at a later date.
Deschamps:
Hello.
--- Quote from: Seronis ---Any suggestions?
--- End quote ---
I've recently bought a laptop with Vista Home Premium 32 bits preinstalled on it, and coinciding with the 8.02 release, I installed there C::B (without MinGW), MinGW, wxMSW 2.8.7, ... and so on.
The versions for MinGW packages that I downloaded were:
binutils-2.17.50-20060824-1.tar.gz (9.320.326 bytes)
gcc-core-3.4.5-20060117-1-vista.tar.gz (3.464.351 bytes)
gcc-g++-3.4.5-20060117-1-vista.tar.gz (4.711.422 bytes)
gdb-6.7.50.20071127-mingw.tar.bz2 (2.077.293 bytes)
mingw32-make-3.81-2.tar.gz (97.305 bytes)
mingw-runtime-3.14.tar.gz (506.843 bytes)
w32api-3.11.tar.gz (1.628.397 bytes)
I've not defined search directories inside C::B (and don't think that they are needed). The only enviroment variable added has been the (obvious) path to the mingw \bin folder. And all is running fine in this Vista system, with all the updates installed (SP1 included). So, if you want to try...
Regards.
Seronis:
Using your selection of packages problem is now fixed. Short on time for now but monday i'll go thru and upgrade a package at a time to what i had before and post which one is the problem.
Navigation
[0] Message Index
[*] Previous page
Go to full version