Thread: Bloodshed Dev-C++ compiler error

  1. #1
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937

    Bloodshed Dev-C++ compiler error

    I keep getting this all of a sudden:
    Code:
    cc1plus.exe C:\Dev-Cpp\Project\xorcodec\cc1plus.exe unrecognized command line option "-fsave-memoized"
    Is it supposed to be "-fsave-memorized"? Regardless, how do I get bloodshed to stop passing it? Fiddling with the settings just isn't doing much.
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    You could perhaps try editing the project.dev file with another editor, whilst dev-c++ isn't running.

    Seems like an IDE bug to me, if it's trashed it's own project file.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937
    Perhaps importing just the code files into a new project will fix the problem then. I googled the error and found an old message thread -- apparently that command was used in earlier versions of the compiler, but now is not supported.. or visa versa. Whatever, I'll try a new project.

    *edit* neither a new project nor editing the dev file helped.
    Last edited by CodeMonkey; 12-22-2006 at 02:43 PM.
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Maybe you installed another compiler and are using a different cc1plus.exe?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937
    That is not the case, either. I am going to see whether the problem extends into my other projects, and if it does, I will simply reinstall (compiler, libraries, all that).
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  6. #6
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937
    Alright, here's the really strange thing. I first had the problem with project x, and only project x. I took the source files from project x and made project y, which then had the same problem. I defaulted all settings and then modified the makefile to remove the problematic parameter. Same problem. Strangely, this problem does not exist with any other projects. It must be my code. But what about code could make the compiler use different compile parameters? Ugh.
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  7. #7
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Well, if the compiler sees lots of loops that look like this
    Code:
    for(int x = 0; x < 2; x ++) function();
    it might pass something like "--unroll-loops".

    I don't think it's your project or whatever. cc1plus.exe is called by GCC/g++, not your IDE/Makefile. You must have incompatible versions or something. Perhaps you have found a bug.

    Run g++ --version and cc1plus --version. Just a thought.

    Since this problem only happens with one project, perhaps you could ignore it or create something like this (untested).
    Code:
    // cc1plus.cpp
    
    #include <string>
    #include <cstring>
    #include <cstdlib>
    
    int main(int argc, char *argv[]) {
        std::string command = "C:/path/to/compiler/bin/cc1plus";
    
        for(int x = 1; x < argc; x ++) {
            if(std::strcmp(argv[x], "-fsave-memoized")) {
                command += ' ';
                command += argv[x];
            }
        }
    
        std::system(command.c_str());
    
        return 0;
    }
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  8. #8
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937
    all is well
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  9. #9
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937
    Alas, it isn't. I just am not having good luck with this compiler. Now I'm getting an "exec format" error. Perhaps I should just downgrade to Dev C++ 4.
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  10. #10
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You might want to try a complete uninstall and reinstall. The details should be available on the website and/or the Dev-C++ forum. I would not advise downgrading to Dev-C++ 4.

    Alternatively, you could try wxDev-C++ or Code::Blocks.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  11. #11
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937
    Laserlight, you are correct. A third complete uninstall and reinstall did the trick... for now.
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  2. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  3. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  4. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  5. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM