- Joined
- Jun 20, 2001
- Location
- Vancouver, WA
I need help setting up GCC in Windows. I'm trying to play around with SIMD, and the only free compiler I can seem to find that supports MMX/3DNow/SSE Intrinsics is GCC. However, I can't seem to get it working with Windows.
What's Happened So Far
1) Went to MinGW's website and downloaded the GCC Core (3.3.1)
2) Downloaded G++ (3.3.1)
3) Extracted both to C:\GCC
4) Added "C:\GCC\bin" to my PATH variable (so I can compile from anywhere)
5) Attempted to compile a simple program ("gcc sample.cpp").
6) GCC complained with the following error:
"gcc: installation problem, cannot exec `cc1plus': No such file or directory"
7) Added "C:\GCC\lib\gcc-lib\mingw32\3.3.1" to my PATH variable (so GCC can find cc1plus.exe)
8) Attempted to compile again
9) GCC reads through the code, can't find any libraries
10) Search online, find that I need a "CPLUS_INCLUDE_PATH" variable containing the path my my include files.
11) Create said variable, set path to "/gcc/include/c++/3.3.1"
12) Attempted to compile again
13) Generates zillions of errors, I believe complaining about bad code in the LIBRARIES THEMSELVES Example error:
"/gcc/include/c++/3.3.1/bits/char_traits.h:68: error: syntax error before `;' token
...And I'm completely stuck now. What did I do wrong, or not do? Any good step by step instructions on how to get this dang compiler to work under windows??? The lack of documentation scares me
JigPu
What I did:
What's Happened So Far
1) Went to MinGW's website and downloaded the GCC Core (3.3.1)
2) Downloaded G++ (3.3.1)
3) Extracted both to C:\GCC
4) Added "C:\GCC\bin" to my PATH variable (so I can compile from anywhere)
5) Attempted to compile a simple program ("gcc sample.cpp").
6) GCC complained with the following error:
"gcc: installation problem, cannot exec `cc1plus': No such file or directory"
7) Added "C:\GCC\lib\gcc-lib\mingw32\3.3.1" to my PATH variable (so GCC can find cc1plus.exe)
8) Attempted to compile again
9) GCC reads through the code, can't find any libraries
10) Search online, find that I need a "CPLUS_INCLUDE_PATH" variable containing the path my my include files.
11) Create said variable, set path to "/gcc/include/c++/3.3.1"
12) Attempted to compile again
13) Generates zillions of errors, I believe complaining about bad code in the LIBRARIES THEMSELVES Example error:
"/gcc/include/c++/3.3.1/bits/char_traits.h:68: error: syntax error before `;' token
...And I'm completely stuck now. What did I do wrong, or not do? Any good step by step instructions on how to get this dang compiler to work under windows??? The lack of documentation scares me
JigPu
What I did: