I get this error when compiling: Unrecognized command line option "-fsave-memoized". Only way to get rid of this is to make new project file and copy-paste all code to it. What is this? Is it bug?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think I have found what the cause of this error message, as I came across the same thing. I am using version 4.9.9.1. I came across this error message while compiling some C and C++ programs, after updating some packages.
I couldn't quite identified which option in the Compiler options was causing it to throw up this error at first, so I reset all the options to default (by clicking the Default button on the Compiler tab in the Compiler Options dialog). So now all the options are defaulted to "No".
I then went through each of the option in the "Settings" tab, selected each option one at a time and click on OK to close the dialog. Then recompile the program again. It compiled fine with no error.
When I got to the "C++ compiler" option, I selected "Yes" for the option "Use heuristics to compile faster". Close the dialog, recompile the program again, and voila, the error message "Unrecognised command line option "-fsave-memoized" came up. So I went back into the Compiler Options dialog and turned this off, then recompile the program again, no error.
Not sure why setting this option would cause the error to come up. This error occurs regardless whether I'm compiling a C or C++ program. Even though it's an option under the C++ category. If anybody could provide an explanation, that would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this seems quite helpful, I will try it. I am new to this thread, but I have the same problem..
It happens since I tried to replace the compiler files (g++.exe, etc) with newer files I got from the mingw site. (the mingw website is quite confusing... hard to find out which file you need or don't need and where to put these files..)
When I recognized the error, I had the idea to get a new version of dev-cpp so the install program can do all the complicated stuff. This lead to another error message that I posted in another thread (problems with NTVDM CPU)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2005-04-07
The -fsave-memoized option was removed from the GCC compiler at version 2.95.
It should probably be removed, but there may possibly be users using Cygwin, DJPP, or GBU cross-compilers based on earlier distributions of GCC who may still require this option.
See:http://gcc.gnu.org/gcc-2.95/c++features.html
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get this error when compiling: Unrecognized command line option "-fsave-memoized". Only way to get rid of this is to make new project file and copy-paste all code to it. What is this? Is it bug?
It may be an option in the compiler or linker parameters. If you have the old project file check and see if this is defined as a parameter.
It would help if you could post the old compile log with the error.
I think I have found what the cause of this error message, as I came across the same thing. I am using version 4.9.9.1. I came across this error message while compiling some C and C++ programs, after updating some packages.
I couldn't quite identified which option in the Compiler options was causing it to throw up this error at first, so I reset all the options to default (by clicking the Default button on the Compiler tab in the Compiler Options dialog). So now all the options are defaulted to "No".
I then went through each of the option in the "Settings" tab, selected each option one at a time and click on OK to close the dialog. Then recompile the program again. It compiled fine with no error.
When I got to the "C++ compiler" option, I selected "Yes" for the option "Use heuristics to compile faster". Close the dialog, recompile the program again, and voila, the error message "Unrecognised command line option "-fsave-memoized" came up. So I went back into the Compiler Options dialog and turned this off, then recompile the program again, no error.
Not sure why setting this option would cause the error to come up. This error occurs regardless whether I'm compiling a C or C++ program. Even though it's an option under the C++ category. If anybody could provide an explanation, that would be appreciated.
this seems quite helpful, I will try it. I am new to this thread, but I have the same problem..
It happens since I tried to replace the compiler files (g++.exe, etc) with newer files I got from the mingw site. (the mingw website is quite confusing... hard to find out which file you need or don't need and where to put these files..)
When I recognized the error, I had the idea to get a new version of dev-cpp so the install program can do all the complicated stuff. This lead to another error message that I posted in another thread (problems with NTVDM CPU)
The -fsave-memoized option was removed from the GCC compiler at version 2.95.
It should probably be removed, but there may possibly be users using Cygwin, DJPP, or GBU cross-compilers based on earlier distributions of GCC who may still require this option.
See:http://gcc.gnu.org/gcc-2.95/c++features.html
Clifford