Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to compile the hello.cpp program. I have the "std_lib_faci8lities.h" which I just downloaded today.
GNU nano 2.9.7 hello.cpp
// This program outputs "Hello, World" to screen
#include "std_lib_facilities.h"
int main() // C++ programs start by executing the function called main
{
cout <<"Hello, World!\n"; // output "Hello, World!"
return 0;
}
I get this result:
$ g++ hello.cpp
In file included from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/ext/hash_map:60:0,
from /usr/include/std_lib_facilities.h:34,
from hello.cpp:3:
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/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 \
^~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/locale:41:0,
from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/iomanip:43,
from /usr/include/std_lib_facilities.h:212,
from hello.cpp:3:
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/locale_facets_nonio.h:1971:5: error: template-id ‘do_get<>’ for ‘String std::messages<char>::do_get(std::messages_base::catalog, int, int, const String&) const’ does not match any template declaration
messages<char>::do_get(catalog, int, int, const string&) const;
^~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/locale_facets_nonio.h:1971:62: note: saw 1 ‘template<>’, need 2 for specializing a member function template
messages<char>::do_get(catalog, int, int, const string&) const;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.