![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Registered User Join Date: Sep 2009
Posts: 10
| Code: [Resource Error] can't popen `gcc -E -xc -DRC_INVOKED -IC:/PROGRA~1/Dev-Cpp/include/common Objects/MingW/<My Project Resource File>.RC': Invalid argument I think the two compilers are getting mixed up, the OpenGL and glut stuff may have mixed up something. I followed the website OpenGL Video Tutorial - Home Here are the steps I followed to set up OpenGL: 1. Download Visual C++ Express and the Microsoft Platform SDK from the Microsoft website. Note that when you download the SDK, it may say something about Windows Server. Don't worry about that; it'll install just fine on any modern version of Windows. 2. Install Visual C++ and the SDK. 3. Download the OpenGL installer from here and the GLUT binary from here. 4. Run the OpenGL installer. 5. Extract GLUT to the directory of your choice. You can do this by creating a new directory, locating and opening the ZIP file using Windows Explorer, and copying the files to the new directory using copy-paste. Alternatively, you can use a free program like WinZip to extract GLUT. 6. In the directory to which you extracted GLUT, make two folders, one called "include" and one called "lib". In the "include" folder, create another folder called "GL", and move glut.h to that folder. Move all of the other files that you extracted for GLUT into the "lib" folder. 7. Run Visual C++ Express. Go to Tools -> Options, then Projects and Solutions -> VC++ Directories. Note where it says "Show directories for". You'll want to change the directories for include files by adding "x\include", "y\include", and "z\Include" and to change the directories for library files by adding "x\lib", "y\lib", and "z\Lib", where "x" is the folder where you installed OpenGL, "y" is the folder where you extracted GLUT, and "z" is the folder where you installed the Microsoft Platform SDK. 8. Change your PATH environment variable as follows: go to the control panel, and go to System. Go to the "Advanced" tab and click on "Environment Variables". Find the "PATH" (or "Path") variable. Change it by adding ";x\lib;y\lib;z\Lib" (without the quotes) to the end of it, where again, "x", "y", and "z" are the folders where you installed OpenGL, GLUT, and the Microsoft Platform SDK. Make sure there are no spaces before or after the semicolons. 9. Reboot your computer, so that Windows will recognise the changes to the PATH environment variable. Other than that, all I did was compile stuff with Visual C++ and OpenGL and it worked fine, and now I just have this resource error with wxDevC++, I'm not good at this linking stuff ![]() And I have checked the compiler options, the lib, include, and binaries are all where they should be where it is installed. Once again, it all worked perfectly until AFTER I installed Visual C++, OpenGL, and Glut. Any help would make my day. |
| C_Sparky is offline | |
| | #2 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| Is the path set to the directory where you have gcc installed?
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #3 |
| Registered User Join Date: Sep 2009
Posts: 10
| Are you talking about the compiler options? Or the Advanced Enviroment Variables in the computer management? |
| C_Sparky is offline | |
| | #4 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| The latter.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #5 |
| Registered User Join Date: Sep 2009
Posts: 10
| I have done that the problem still persists. |
| C_Sparky is offline | |
![]() |
| Tags |
| error, opengl, resource, visual studio, wxdevcpp |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compiler Issue | Jesse20ghet | C++ Programming | 35 | 08-19-2009 10:47 AM |
| MSVC++ vs GCC compiler issue | WDT | C++ Programming | 9 | 01-04-2004 01:07 PM |
| Is this a compiler Issue? | kinghajj | C Programming | 8 | 07-17-2003 05:06 AM |
| compiler issue | deebs1000 | C Programming | 6 | 10-30-2002 08:12 PM |
| Compiler Issue | spd_dmn | C++ Programming | 5 | 01-16-2002 01:29 PM |