Thread: wxDevC++ Resource Compiler Issue - Conflicts with other compiler?

  1. #1
    Grey Wizard C_Sparky's Avatar
    Join Date
    Sep 2009
    Posts
    50

    Question wxDevC++ Resource Compiler Issue - Conflicts with other compiler?

    I've been using wxDevC++ forever with no problem, and when I installed Visual C++ 2008 Express(I also installed OpenGL and Glut), it seems to have conflict with wxDevC++.

    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've been compiling these projects for ages now and now only AFTER i installed Visual C++ does it give me this error.

    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.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,653
    Is the path set to the directory where you have gcc installed?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Grey Wizard C_Sparky's Avatar
    Join Date
    Sep 2009
    Posts
    50
    Are you talking about the compiler options? Or the Advanced Enviroment Variables in the computer management?

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,653
    The latter.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Grey Wizard C_Sparky's Avatar
    Join Date
    Sep 2009
    Posts
    50
    I have done that the problem still persists.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiler Issue
    By Jesse20ghet in forum C++ Programming
    Replies: 35
    Last Post: 08-19-2009, 10:47 AM
  2. MSVC++ vs GCC compiler issue
    By WDT in forum C++ Programming
    Replies: 9
    Last Post: 01-04-2004, 01:07 PM
  3. Is this a compiler Issue?
    By kinghajj in forum C Programming
    Replies: 8
    Last Post: 07-17-2003, 05:06 AM
  4. compiler issue
    By deebs1000 in forum C Programming
    Replies: 6
    Last Post: 10-30-2002, 08:12 PM
  5. Compiler Issue
    By spd_dmn in forum C++ Programming
    Replies: 5
    Last Post: 01-16-2002, 01:29 PM

Tags for this Thread