Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Below is my code
- #include "std_lib_facilities.h"
- int main()
- {
- cout << "From my chair, get up and turn around facing south.\n";
- cout << "Then walk down the hall for about 12 feet and stop.\n";
- cout << "Then turn right and open the door.\n";
- cout << "Walk in for about 6 feet and there is the throne.\n";
- return 0;
- }
- When I compile it I get this error
- g++ ch2_exercise_part2.cpp -o ch2_exercise_part2
- In file included from /usr/include/c++/4.9/ext/hash_map:60:0,
- from std_lib_facilities.h:34,
- from ch2_exercise_part2.cpp:1:
- /usr/include/c++/4.9/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
- #warning \
- ^
- Yet when I run ./ch2_exercise_part2 it executes no problem with no errors and prints out all my text to the screen.
- So I checked the file /usr/include/c++/4.9/backward/backward_warning.h
- And found this
- A list of valid replacements is as follows:
- Use: Instead of:
- <sstream>, basic_stringbuf <strstream>, strstreambuf
- <sstream>, basic_istringstream <strstream>, istrstream
- <sstream>, basic_ostringstream <strstream>, ostrstream
- <sstream>, basic_stringstream <strstream>, strstream
- <unordered_set>, unordered_set <ext/hash_set>, hash_set
- <unordered_set>, unordered_multiset <ext/hash_set>, hash_multiset
- <unordered_map>, unordered_map <ext/hash_map>, hash_map
- <unordered_map>, unordered_multimap <ext/hash_map>, hash_multimap
- <functional>, bind <functional>, binder1st
- <functional>, bind <functional>, binder2nd
- <functional>, bind <functional>, bind1st
- <functional>, bind <functional>, bind2nd
- <memory>, unique_ptr <memory>, auto_ptr
- I can't find what I need to replace in my code though with the above stuff.
- I am using Vim and Linux terminal to work with right now.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement