|
"-fsave-memoized" ? |
Laser Loke
Member #5,827
May 2005
|
I was trying to use pthread in my game, #include <pthread.h> void main(void) return; END_OF_MAIN(); I also linked both -lalleg & -lpthreadGC but I still got the error, anyone? |
ReyBrujo
Moderator
January 2001
|
Don't use that command line. -- |
Laser Loke
Member #5,827
May 2005
|
errr..... |
ReyBrujo
Moderator
January 2001
|
Can you post the command line you are using to compile your program? -- |
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
|
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. -- |
Laser Loke
Member #5,827
May 2005
|
Only these are set to "Yes" C++ compiler Code Generation Optimization |
ReyBrujo
Moderator
January 2001
|
When you compile, there is a tab named "Compile Log" below. Copy all the Compile Log box text here. -- |
Laser Loke
Member #5,827
May 2005
|
Compiler: Default compiler cc1.exe: error: unrecognized command line option "-fsave-memoized" make.exe: *** [main.o] Error 1 Execution terminated |
ReyBrujo
Moderator
January 2001
|
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. -- |
Laser Loke
Member #5,827
May 2005
|
problem solved!! |
|