Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » "-fsave-memoized" ?

This thread is locked; no one can reply to it. rss feed Print
"-fsave-memoized" ?
Laser Loke
Member #5,827
May 2005

I was trying to use pthread in my game,
but I got this error -unrecognized command line option "-fsave-memoized"-
This is the code

#include <pthread.h>
#include "allegro.h"

void main(void)
{
allegro_init();
set_color_depth(16);
set_gfx_mode(GFX_AUTODETECT_FULLSCREEN, 640, 480, 0, 0);
install_keyboard();
install_timer();

return;
}

END_OF_MAIN();

I also linked both -lalleg & -lpthreadGC but I still got the error, anyone?

ReyBrujo
Moderator
January 2001
avatar

Don't use that command line.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Laser Loke
Member #5,827
May 2005

errr.....
what do u mean, exactly?

ReyBrujo
Moderator
January 2001
avatar

Can you post the command line you are using to compile your program?

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Laser Loke
Member #5,827
May 2005

I am using Dev-C++ v4.9.9.2, so if there is any command line for compilation, please tell me where to find it

ReyBrujo
Moderator
January 2001
avatar

Go to Project/Options, choose the Parameters tab, and see if there is something written in the Compiler or the C++ Compiler boxes.

If nothing, go to the Compiler tab, and check every node of the tree (the one that has the options), and write down which options have a "Yes" on.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Laser Loke
Member #5,827
May 2005

Only these are set to "Yes"

C++ compiler
"Use heuristic to compile faster"

Code Generation
"Enable Exception Handling"

Optimization
"Best Optimization"

ReyBrujo
Moderator
January 2001
avatar

When you compile, there is a tab named "Compile Log" below. Copy all the Compile Log box text here.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Laser Loke
Member #5,827
May 2005

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Final Project\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Final Project\Makefile.win" all
gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include" -fsave-memoized -fexceptions -O3

cc1.exe: error: unrecognized command line option "-fsave-memoized"

make.exe: *** [main.o] Error 1

Execution terminated

ReyBrujo
Moderator
January 2001
avatar

Remove the Yes from "Use heuristic to compile faster". I am using gcc 3.2.3 and the switch works fine. It seems your version is older. Try going to a DOS prompt, and use gcc --version. If that doesn't work, try c:\dev-cpp\bin\gcc --version, and post the results.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Laser Loke
Member #5,827
May 2005

problem solved!!
thank U!!

Go to: