cc1plus.exe: error: unrecognized command line option "-fsave-memoized"
make.exe: *** [../Hello.o] Error 1
Execution terminated
it looks like make the .o file any ideas? ive reinstalled dev-C++ more than 5 times the thing is the first program i run it works but after that it goes all messed
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
int main()
{
cout<<"abc"<<endl;
getch();
return 0;
}
thats the code im using and it will compile but it says souce not compiled still.....
and heres the compiler log
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Hello.cpp" -o "C:\Hello.exe" -pg -g3 -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -lgmon -pg -g3
In file included from C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:43,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from C:\Hello.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/cstdio:167: error: ::snprintf' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdio:170: error:::vsnprintf' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdio:177: error: __gnu_cxx::snprintf' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdio:180: error:__gnu_cxx::vsnprintf' has not been declared
In file included from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from C:\Hello.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h: In function int std::__convert_from_v(char*, int, const char*, _Tv, int* const&, int)':
C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:68: error:snprintf' is not a member of `std'
In file included from C:/Dev-Cpp/include/wchar.h:45,
from C:/Dev-Cpp/include/c++/3.4.2/cwchar:54,
from C:/Dev-Cpp/include/c++/3.4.2/bits/postypes.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:50,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from C:\Hello.cpp:1:
C:/Dev-Cpp/include/wctype.h: At global scope:
C:/Dev-Cpp/include/wctype.h:90: error: conflicting declaration 'short unsigned int _ctype[]'
C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: '_ctype' has a previous declaration as char _ctype[]'
C:/Dev-Cpp/include/wctype.h:90: error: type mismatch with previous external decl ofshort unsigned int _ctype[]'
C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: previous external decl of char _ctype[]'
C:/Dev-Cpp/include/wctype.h:90: error: conflicting declaration 'short unsigned int _ctype[]'
C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: '_ctype' has a previous declaration aschar _ctype[]'
In file included from C:/Dev-Cpp/include/c++/3.4.2/cwchar:54,
from C:/Dev-Cpp/include/c++/3.4.2/bits/postypes.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:50,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from C:\Hello.cpp:1:
C:/Dev-Cpp/include/wchar.h:78: error: conflicting declaration 'typedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: 'FILE' has a previous declaration as `typedef struct FILE FILE'
C:/Dev-Cpp/include/wchar.h:78: error: declaration of typedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declarationtypedef struct FILE FILE'
C:/Dev-Cpp/include/wchar.h:78: error: declaration of typedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declarationtypedef struct FILE FILE'
C:/Dev-Cpp/include/wchar.h:78: error: declaration of typedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declarationtypedef struct FILE FILE'
C:/Dev-Cpp/include/wchar.h:87: error: redefinition of struct tm'
C:/Dev-Cpp/include/c++/3.4.2/time.h:43: error: previous definition ofstruct tm'
In file included from C:/Dev-Cpp/include/c++/3.4.2/bits/stl_algobase.h:67,
from C:/Dev-Cpp/include/c++/3.4.2/bits/char_traits.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:46,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from C:\Hello.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:143: error: ::lldiv_t' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:149: error:::_Exit' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:159: error: lldiv_t' does not name a type
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:163: error:lldiv_t' does not name a type
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:176: error: ::atoll' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:177: error:::strtoll' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:178: error: ::strtoull' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:180: error:::strtof' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:181: error: ::strtold' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:187: error:gnu_cxx::lldiv_t' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:189: error: __gnu_cxx::_Exit' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:193: error:gnu_cxx::div' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:194: error: `__gnu_cxx::lldiv' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:196: error: __gnu_cxx::atoll' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:197: error:gnu_cxx::strtof' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:198: error: __gnu_cxx::strtoll' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:199: error:gnu_cxx::strtoull' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:200: error: `__gnu_cxx::strtold' has not been declared
C:\Hello.cpp: In function int main()':
C:\Hello.cpp:6: error:cout' undeclared (first use this function)
C:\Hello.cpp:6: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\Hello.cpp:6: error: `endl' undeclared (first use this function)
Execution terminated
then it wont run =( i dont like this new compiler im so used to borland in dos shell
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In file included from C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:43,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from main.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/cstdio:167: error: ::snprintf' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdio:170: error:::vsnprintf' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdio:177: error: __gnu_cxx::snprintf' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdio:180: error:__gnu_cxx::vsnprintf' has not been declared
In file included from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from main.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h: In function int std::__convert_from_v(char*, int, const char*, _Tv, int* const&, int)':
C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:68: error:snprintf' is not a member of `std'
In file included from C:/Dev-Cpp/include/wchar.h:45,
from C:/Dev-Cpp/include/c++/3.4.2/cwchar:54,
from C:/Dev-Cpp/include/c++/3.4.2/bits/postypes.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:50,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from main.cpp:1:
C:/Dev-Cpp/include/wctype.h: At global scope:
C:/Dev-Cpp/include/wctype.h:90: error: conflicting declaration 'short unsigned int _ctype[]'
C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: '_ctype' has a previous declaration as char _ctype[]'
C:/Dev-Cpp/include/wctype.h:90: error: type mismatch with previous external decl ofshort unsigned int _ctype[]'
C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: previous external decl of char _ctype[]'
C:/Dev-Cpp/include/wctype.h:90: error: conflicting declaration 'short unsigned int _ctype[]'
C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: '_ctype' has a previous declaration aschar _ctype[]'
In file included from C:/Dev-Cpp/include/c++/3.4.2/cwchar:54,
from C:/Dev-Cpp/include/c++/3.4.2/bits/postypes.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:50,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from main.cpp:1:
C:/Dev-Cpp/include/wchar.h:78: error: conflicting declaration 'typedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: 'FILE' has a previous declaration as typedef struct FILE FILE'
C:/Dev-Cpp/include/wchar.h:78: error: declaration oftypedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declaration typedef struct FILE FILE'
C:/Dev-Cpp/include/wchar.h:78: error: declaration oftypedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declaration typedef struct FILE FILE'
C:/Dev-Cpp/include/wchar.h:78: error: declaration oftypedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declaration typedef struct FILE FILE'
C:/Dev-Cpp/include/wchar.h:87: error: redefinition ofstruct tm'
C:/Dev-Cpp/include/c++/3.4.2/time.h:43: error: previous definition of `struct tm'
In file included from C:/Dev-Cpp/include/c++/3.4.2/bits/stl_algobase.h:67,
from C:/Dev-Cpp/include/c++/3.4.2/bits/char_traits.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:46,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from main.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:143: error: ::lldiv_t' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:149: error:::_Exit' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:159: error: lldiv_t' does not name a type
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:163: error:lldiv_t' does not name a type
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:176: error: ::atoll' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:177: error:::strtoll' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:178: error: ::strtoull' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:180: error:::strtof' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:181: error: ::strtold' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:187: error:gnu_cxx::lldiv_t' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:189: error: __gnu_cxx::_Exit' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:193: error:gnu_cxx::div' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:194: error: `__gnu_cxx::lldiv' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:196: error: __gnu_cxx::atoll' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:197: error:gnu_cxx::strtof' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:198: error: __gnu_cxx::strtoll' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:199: error:gnu_cxx::strtoull' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:200: error: `__gnu_cxx::strtold' has not been declared
make.exe: *** [main.o] Error 1
Execution terminated
looks like it cant make the file,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please also note that the directions for the Basic 3 tell you that if you have a ton
of errors, please just post through the first 5 or so. That is usually enough. Posting
a ton of error messages, as has been done here a couple of timess makes the thread really
hard to follow.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-07-08
You say it did not work, but it did clear up the last three errors - the code was still wrong, but not your only problem.
From previous similar problems it may be a case of creating a clean install. But try Butch's suggestion first.
The -fsave-memoized option (which mysteriously disappeared in your second post) is a long gone option from earlier versions of the GCC compiler, so it seems that you may have had an earlier version of Dev-C++ installed. This can cause problems if you don't manually eradicate the configuration files from the previous version. It can also cause problems if you try to use a .dev file form an earlier version (so Butch's suggestion is germane).
See the "PLEASE READ BEFORE POSTING A QUESTION" thread for instructions on the clean re-install process.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The -fsave-memoized option (which mysteriously disappeared in your second post) is a long gone option from earlier versions of the GCC compiler, so it seems that you may have had an earlier version of Dev-C++ installed. This can cause problems if you don't manually eradicate the configuration files from the previous version. It can also cause problems if you try to use a .dev file form an earlier version (so Butch's suggestion is germane).
i had no older version but borland c++, and i had compltly removed all the files evertime i reinstalled dev that error ( -fsave-memoized ) shows up still some times.
But i also found out that the conio.h file does not have as many functions as the one i had used before like gotoxy(10,10); comes up with an error, so ive been trying to patch my old conio.h file in so i can use all the functions.
also i ran into a problem with the iostream.h file some times if its put in the file like this....
include <iostream>
it will still work but some functions dont work but if its done like
inculde <iostream.h>
it works but some other functions get messed up i said i could change a const char into a char 2 times already.
so does any know whats up with the headrer files? some of them seem to make the program not compile and give the ( make.exe: *** [main.o] ) error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-07-09
conio.h is and never was a standard header and Microsoft's is entirely different that Borland's.
The -fsave-memoized option is still supported by teh IDE but not the compiler. If it "shows up still some times" then you are setting it! It is enabled when the Compiler or Project option "Use Heuristics" is set to "YES". If you have this set in the general compiler options, it will be applied to every new project you create, which may explain why it "shows up still some times" (i.e. every time you create new project). If this still happens after a 'clean' install, then you are not actually doing a 'clean' install at all, because that would reset the options to their defaults. The instructions for doing the reinstall clearly request that you describe exactly what you did for exactly this reason.
With respect to <iostream>, the .h form is deprecated and should not be used for new code. All the symbols are in the std:: namespace, so you have to use scope resolution or 'using directives' to access them. If you want help resolving <iostream> issues, you will have to post examples and logs; preferably in a separate thread, because that is an unrelated problem - you seem to be changing the problem quite a lot - can we fix one at a time please!
"make.exe: *** [main.o] ) error" simply means the build failed - for whatever reason. The actual reason for failure is described by the error messages from whichever build command failed, which is why we ask for the whole log.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-07-10
Strangely last time Overkill posted he was logged in as a sourceforge user and could spell and express himself in a reasonably grammatically coherent manner. So either you've been drinking or you are not Overkill. Also if you are so wise about beta software why did you install it!?
If you are Overkill, you realise that you have reverted to GCC v2.95 which is very out of date, it solves your namespace problem simply by not actually supporting namespaces! And the -fsave-memoized problem is solved because that was the version with that option in it - but you might wonder why it is no longer supported!
Also realise that it is only the IDE that is 'beta', the MinGW compiler is built from the same source as that used to build and develop on Linux and Mac OSX as well and numerous commercial embedded systems and much Win32 code, moreover version 3.4.2 used with Dev-C++ 4.9.9.2 is several versions behind the 'bleeding edge' of GCC development and is mature.
You have not really solved your problem, you have just run away from it. The compiler (and Dev-C++ for that matter) works for thousands of people day-in-day-out, the problem was with your installation and had you stayed the pace, provided the information requested accurately, carried out instructions carefully, and stopped jumping from one issue to another we would have gotten to the bottom of it. You are free not to cooperate with those offering assistance, but why ask teh question if you are not interested in the answer?
>>Clifford>>>Mr,Thinks he knows it all
Not at all, just more than you. I know for example that you are now a functionally inferior version of Dev-C++ and a pre-ISO standard C++ compiler. Perhaps you should have asked those that donate their time supporting the product's users before going your own ill-advised way. When you have a problem with this version, the first thing you will be asked to do if you post it here is to upgrade. It is otherwise very hard to provide support.
If you do choose to start behaving rationally however, it is now really important that you follow the reinstallation instructions indicated because it is exactly this upgrade from 4 to 4.9.9.2 that causes teh problems that thse instructions address.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Don't know if this will work, but this reminds me of a problem from several years ago.
It kind of looks like the project is corrupted.
Open the folder which contains your source code.
Find the project file; ends with the suffix .dev and delete it.
Open Dev-C++ and create a new project and add you source code main.cpp to it and try compiling it again.
Hope this works.
See Ya
Butch
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well i got it all fixed thnx for the help, sorry for asking so many questions in one topic.
Overkill
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-07-10
Thanks for nothing! It is helpful if you could explain what the problem turned out to be and how you solved it. This helps determine whether the advice given was helpful, and where it was not, what advice might be given in future. This helps improve the advice given and allows those that bother to search to determine if a thread's content is useful or relevant to them or not.
As it is, I am forced to conclude from the evidence that I was indeed right and your reinstall was not as 'clean' as you might have thought, and that whatever the problem was it would have been solved had you truly read the "PLEASE READ BEFORE POSTING A QUESTION" thread first.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
wow, Clifford thats great......but no it was not that cuse i read that from and it did not help and i still gte the error some times....this is why you never use bata softwear cuse theres always bugs i dowloaded an old version and thats mainly how i fixed the problem
Clifford>>>Mr,Thinks he knows it all
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually, Clifford is correct. A reply of the form, "its OK, I fixed it", without
conveying HOW you fixed it is really VERY selfish and completely rude on your part.
A person who understands that a forum is a group of people helping one another,
understands that when one solves a problem, even if they solve it totally by themselves,
then the proper way to give to the community is to post what you found, so that other
users in the future can benefit.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yea ive tryed to compile my programs and it does it but i get a error at the end when it trys to make the file heres the log........
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all
g++.exe -DDEBUG -c ../Hello.cpp -o ../Hello.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -fno-access-control -fsave-memoized -pg -g3 -fmessage-length=0
cc1plus.exe: error: unrecognized command line option "-fsave-memoized"
make.exe: *** [../Hello.o] Error 1
Execution terminated
it looks like make the .o file any ideas? ive reinstalled dev-C++ more than 5 times the thing is the first program i run it works but after that it goes all messed
Edit
include <iostream>
int main()
{
cout<<"abc"<<endl;
getch();
return 0;
}
thats the code im using and it will compile but it says souce not compiled still.....
and heres the compiler log
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Hello.cpp" -o "C:\Hello.exe" -pg -g3 -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -lgmon -pg -g3
In file included from C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:43,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
C:/Dev-Cpp/include/c++/3.4.2/cstdio:167: error:
::snprintf' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdio:170: error:
::vsnprintf' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdio:177: error:
__gnu_cxx::snprintf' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdio:180: error:
__gnu_cxx::vsnprintf' has not been declaredIn file included from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from C:\Hello.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h: In function
int std::__convert_from_v(char*, int, const char*, _Tv, int* const&, int)': C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:68: error:
snprintf' is not a member of `std'In file included from C:/Dev-Cpp/include/wchar.h:45,
from C:/Dev-Cpp/include/c++/3.4.2/cwchar:54,
from C:/Dev-Cpp/include/c++/3.4.2/bits/postypes.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:50,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from C:\Hello.cpp:1:
C:/Dev-Cpp/include/wctype.h: At global scope:
C:/Dev-Cpp/include/wctype.h:90: error: conflicting declaration 'short unsigned int _ctype[]'
C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: '_ctype' has a previous declaration as
char _ctype[]' C:/Dev-Cpp/include/wctype.h:90: error: type mismatch with previous external decl of
short unsigned int _ctype[]'C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: previous external decl of
char _ctype[]' C:/Dev-Cpp/include/wctype.h:90: error: conflicting declaration 'short unsigned int _ctype[]' C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: '_ctype' has a previous declaration as
char _ctype[]'In file included from C:/Dev-Cpp/include/c++/3.4.2/cwchar:54,
from C:/Dev-Cpp/include/c++/3.4.2/bits/postypes.h:46,
C:/Dev-Cpp/include/wchar.h:78: error: conflicting declaration 'typedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: 'FILE' has a previous declaration as `typedef struct FILE FILE'
C:/Dev-Cpp/include/wchar.h:78: error: declaration of
typedef struct _iobuf FILE' C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declaration
typedef struct FILE FILE'C:/Dev-Cpp/include/wchar.h:78: error: declaration of
typedef struct _iobuf FILE' C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declaration
typedef struct FILE FILE'C:/Dev-Cpp/include/wchar.h:78: error: declaration of
typedef struct _iobuf FILE' C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declaration
typedef struct FILE FILE'C:/Dev-Cpp/include/wchar.h:87: error: redefinition of
struct tm' C:/Dev-Cpp/include/c++/3.4.2/time.h:43: error: previous definition of
struct tm'In file included from C:/Dev-Cpp/include/c++/3.4.2/bits/stl_algobase.h:67,
from C:/Dev-Cpp/include/c++/3.4.2/bits/char_traits.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:46,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from C:\Hello.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:143: error:
::lldiv_t' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:149: error:
::_Exit' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:159: error:
lldiv_t' does not name a type C:/Dev-Cpp/include/c++/3.4.2/cstdlib:163: error:
lldiv_t' does not name a typeC:/Dev-Cpp/include/c++/3.4.2/cstdlib:176: error:
::atoll' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:177: error:
::strtoll' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:178: error:
::strtoull' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:180: error:
::strtof' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:181: error:
::strtold' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:187: error:
gnu_cxx::lldiv_t' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:189: error:
__gnu_cxx::_Exit' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:193: error:
gnu_cxx::div' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:194: error: `__gnu_cxx::lldiv' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:196: error:
__gnu_cxx::atoll' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:197: error:
gnu_cxx::strtof' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:198: error:
__gnu_cxx::strtoll' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:199: error:
gnu_cxx::strtoull' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:200: error: `__gnu_cxx::strtold' has not been declared
C:\Hello.cpp: In function
int main()': C:\Hello.cpp:6: error:
cout' undeclared (first use this function)C:\Hello.cpp:6: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\Hello.cpp:6: error: `endl' undeclared (first use this function)
Execution terminated
then it wont run =( i dont like this new compiler im so used to borland in dos shell
include <iostream> // try this ...
using namespace std;
int main()
{
cout<<"abc"<<endl;
cin.get();
return 0;
}
well that did not work
include <iostream> // try this ...
using namespace std;
int main()
{
cout<<"abc"<<endl;
cin.get();
return 0;
}
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
In file included from C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:43,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
C:/Dev-Cpp/include/c++/3.4.2/cstdio:167: error:
::snprintf' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdio:170: error:
::vsnprintf' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdio:177: error:
__gnu_cxx::snprintf' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdio:180: error:
__gnu_cxx::vsnprintf' has not been declaredIn file included from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h: In function
int std::__convert_from_v(char*, int, const char*, _Tv, int* const&, int)': C:/Dev-Cpp/include/c++/3.4.2/mingw32/bits/c++locale.h:68: error:
snprintf' is not a member of `std'In file included from C:/Dev-Cpp/include/wchar.h:45,
from C:/Dev-Cpp/include/c++/3.4.2/cwchar:54,
from C:/Dev-Cpp/include/c++/3.4.2/bits/postypes.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:50,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from main.cpp:1:
C:/Dev-Cpp/include/wctype.h: At global scope:
C:/Dev-Cpp/include/wctype.h:90: error: conflicting declaration 'short unsigned int _ctype[]'
C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: '_ctype' has a previous declaration as
char _ctype[]' C:/Dev-Cpp/include/wctype.h:90: error: type mismatch with previous external decl of
short unsigned int _ctype[]'C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: previous external decl of
char _ctype[]' C:/Dev-Cpp/include/wctype.h:90: error: conflicting declaration 'short unsigned int _ctype[]' C:/Dev-Cpp/include/c++/3.4.2/ctype.h:32: error: '_ctype' has a previous declaration as
char _ctype[]'In file included from C:/Dev-Cpp/include/c++/3.4.2/cwchar:54,
from C:/Dev-Cpp/include/c++/3.4.2/bits/postypes.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/iosfwd:50,
from C:/Dev-Cpp/include/c++/3.4.2/ios:44,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from main.cpp:1:
C:/Dev-Cpp/include/wchar.h:78: error: conflicting declaration 'typedef struct _iobuf FILE'
C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: 'FILE' has a previous declaration as
typedef struct FILE FILE' C:/Dev-Cpp/include/wchar.h:78: error: declaration of
typedef struct _iobuf FILE'C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declaration
typedef struct FILE FILE' C:/Dev-Cpp/include/wchar.h:78: error: declaration of
typedef struct _iobuf FILE'C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declaration
typedef struct FILE FILE' C:/Dev-Cpp/include/wchar.h:78: error: declaration of
typedef struct _iobuf FILE'C:/Dev-Cpp/include/c++/3.4.2/stdio.h:53: error: conflicts with previous declaration
typedef struct FILE FILE' C:/Dev-Cpp/include/wchar.h:87: error: redefinition of
struct tm'C:/Dev-Cpp/include/c++/3.4.2/time.h:43: error: previous definition of `struct tm'
In file included from C:/Dev-Cpp/include/c++/3.4.2/bits/stl_algobase.h:67,
from C:/Dev-Cpp/include/c++/3.4.2/bits/char_traits.h:46,
from C:/Dev-Cpp/include/c++/3.4.2/ios:46,
from C:/Dev-Cpp/include/c++/3.4.2/ostream:45,
from C:/Dev-Cpp/include/c++/3.4.2/iostream:45,
from main.cpp:1:
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:143: error:
::lldiv_t' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:149: error:
::_Exit' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:159: error:
lldiv_t' does not name a type C:/Dev-Cpp/include/c++/3.4.2/cstdlib:163: error:
lldiv_t' does not name a typeC:/Dev-Cpp/include/c++/3.4.2/cstdlib:176: error:
::atoll' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:177: error:
::strtoll' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:178: error:
::strtoull' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:180: error:
::strtof' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:181: error:
::strtold' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:187: error:
gnu_cxx::lldiv_t' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:189: error:
__gnu_cxx::_Exit' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:193: error:
gnu_cxx::div' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:194: error: `__gnu_cxx::lldiv' has not been declared
C:/Dev-Cpp/include/c++/3.4.2/cstdlib:196: error:
__gnu_cxx::atoll' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:197: error:
gnu_cxx::strtof' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:198: error:
__gnu_cxx::strtoll' has not been declared C:/Dev-Cpp/include/c++/3.4.2/cstdlib:199: error:
gnu_cxx::strtoull' has not been declaredC:/Dev-Cpp/include/c++/3.4.2/cstdlib:200: error: `__gnu_cxx::strtold' has not been declared
make.exe: *** [main.o] Error 1
Execution terminated
looks like it cant make the file,
Please also note that the directions for the Basic 3 tell you that if you have a ton
of errors, please just post through the first 5 or so. That is usually enough. Posting
a ton of error messages, as has been done here a couple of timess makes the thread really
hard to follow.
Wayne
You say it did not work, but it did clear up the last three errors - the code was still wrong, but not your only problem.
From previous similar problems it may be a case of creating a clean install. But try Butch's suggestion first.
The -fsave-memoized option (which mysteriously disappeared in your second post) is a long gone option from earlier versions of the GCC compiler, so it seems that you may have had an earlier version of Dev-C++ installed. This can cause problems if you don't manually eradicate the configuration files from the previous version. It can also cause problems if you try to use a .dev file form an earlier version (so Butch's suggestion is germane).
See the "PLEASE READ BEFORE POSTING A QUESTION" thread for instructions on the clean re-install process.
Clifford
The -fsave-memoized option (which mysteriously disappeared in your second post) is a long gone option from earlier versions of the GCC compiler, so it seems that you may have had an earlier version of Dev-C++ installed. This can cause problems if you don't manually eradicate the configuration files from the previous version. It can also cause problems if you try to use a .dev file form an earlier version (so Butch's suggestion is germane).
i had no older version but borland c++, and i had compltly removed all the files evertime i reinstalled dev that error ( -fsave-memoized ) shows up still some times.
But i also found out that the conio.h file does not have as many functions as the one i had used before like gotoxy(10,10); comes up with an error, so ive been trying to patch my old conio.h file in so i can use all the functions.
also i ran into a problem with the iostream.h file some times if its put in the file like this....
include <iostream>
it will still work but some functions dont work but if its done like
inculde <iostream.h>
it works but some other functions get messed up i said i could change a const char into a char 2 times already.
so does any know whats up with the headrer files? some of them seem to make the program not compile and give the ( make.exe: *** [main.o] ) error.
conio.h is and never was a standard header and Microsoft's is entirely different that Borland's.
If you want a Borland clone of this header try: http://www14.brinkster.com/aditsu/console/
The -fsave-memoized option is still supported by teh IDE but not the compiler. If it "shows up still some times" then you are setting it! It is enabled when the Compiler or Project option "Use Heuristics" is set to "YES". If you have this set in the general compiler options, it will be applied to every new project you create, which may explain why it "shows up still some times" (i.e. every time you create new project). If this still happens after a 'clean' install, then you are not actually doing a 'clean' install at all, because that would reset the options to their defaults. The instructions for doing the reinstall clearly request that you describe exactly what you did for exactly this reason.
With respect to <iostream>, the .h form is deprecated and should not be used for new code. All the symbols are in the std:: namespace, so you have to use scope resolution or 'using directives' to access them. If you want help resolving <iostream> issues, you will have to post examples and logs; preferably in a separate thread, because that is an unrelated problem - you seem to be changing the problem quite a lot - can we fix one at a time please!
"make.exe: *** [main.o] ) error" simply means the build failed - for whatever reason. The actual reason for failure is described by the error messages from whichever build command failed, which is why we ask for the whole log.
Clifford
Strangely last time Overkill posted he was logged in as a sourceforge user and could spell and express himself in a reasonably grammatically coherent manner. So either you've been drinking or you are not Overkill. Also if you are so wise about beta software why did you install it!?
If you are Overkill, you realise that you have reverted to GCC v2.95 which is very out of date, it solves your namespace problem simply by not actually supporting namespaces! And the -fsave-memoized problem is solved because that was the version with that option in it - but you might wonder why it is no longer supported!
Also realise that it is only the IDE that is 'beta', the MinGW compiler is built from the same source as that used to build and develop on Linux and Mac OSX as well and numerous commercial embedded systems and much Win32 code, moreover version 3.4.2 used with Dev-C++ 4.9.9.2 is several versions behind the 'bleeding edge' of GCC development and is mature.
You have not really solved your problem, you have just run away from it. The compiler (and Dev-C++ for that matter) works for thousands of people day-in-day-out, the problem was with your installation and had you stayed the pace, provided the information requested accurately, carried out instructions carefully, and stopped jumping from one issue to another we would have gotten to the bottom of it. You are free not to cooperate with those offering assistance, but why ask teh question if you are not interested in the answer?
>>Clifford>>>Mr,Thinks he knows it all
Not at all, just more than you. I know for example that you are now a functionally inferior version of Dev-C++ and a pre-ISO standard C++ compiler. Perhaps you should have asked those that donate their time supporting the product's users before going your own ill-advised way. When you have a problem with this version, the first thing you will be asked to do if you post it here is to upgrade. It is otherwise very hard to provide support.
If you do choose to start behaving rationally however, it is now really important that you follow the reinstallation instructions indicated because it is exactly this upgrade from 4 to 4.9.9.2 that causes teh problems that thse instructions address.
Clifford
Hi Everyone:
Don't know if this will work, but this reminds me of a problem from several years ago.
It kind of looks like the project is corrupted.
Open the folder which contains your source code.
Find the project file; ends with the suffix .dev and delete it.
Open Dev-C++ and create a new project and add you source code main.cpp to it and try compiling it again.
Hope this works.
See Ya
Butch
screw conio,get a decent less antiquated substitute.
There are many out there.
There may be a few problems solved if you did.
(I wish to remain anonymous).
Well i got it all fixed thnx for the help, sorry for asking so many questions in one topic.
Overkill
Thanks for nothing! It is helpful if you could explain what the problem turned out to be and how you solved it. This helps determine whether the advice given was helpful, and where it was not, what advice might be given in future. This helps improve the advice given and allows those that bother to search to determine if a thread's content is useful or relevant to them or not.
As it is, I am forced to conclude from the evidence that I was indeed right and your reinstall was not as 'clean' as you might have thought, and that whatever the problem was it would have been solved had you truly read the "PLEASE READ BEFORE POSTING A QUESTION" thread first.
Clifford
wow, Clifford thats great......but no it was not that cuse i read that from and it did not help and i still gte the error some times....this is why you never use bata softwear cuse theres always bugs i dowloaded an old version and thats mainly how i fixed the problem
Clifford>>>Mr,Thinks he knows it all
Actually, Clifford is correct. A reply of the form, "its OK, I fixed it", without
conveying HOW you fixed it is really VERY selfish and completely rude on your part.
A person who understands that a forum is a group of people helping one another,
understands that when one solves a problem, even if they solve it totally by themselves,
then the proper way to give to the community is to post what you found, so that other
users in the future can benefit.
Wayne