Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #187859
| From | <tomas@tuxteam.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: g++ can't build "Hello World" programm |
| Date | 2017-10-13 15:30 +0200 |
| Message-ID | <uA8ch-4ln-7@gated-at.bofh.it> (permalink) |
| References | <uA82B-4hy-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Oct 13, 2017 at 07:11:28PM +0600, Evgeny wrote:
> Dear all, i have some problems with <iostream>, <fstream> etc. libraries on
> my debian.
>
> I have pretty simple code:
>
> #include <iostream>
>
> using namespace std;
>
> int main(void) {
>
> cout << "Hello World!" << endl;
> return 0;
> }
>
> And when i try to compile it, compiler gives me error:
>
> evgeny@debian:~/Documents/Programming$ g++ test.cpp -o testIn file
> included from /usr/include/c++/4.9/clocale:42:0,
> from
> /usr/include/x86_64-linux-gnu/c++/4.9/32/bits/c++locale.h:41,
> from /usr/include/c++/4.9/bits/localefwd.h:40,
> from /usr/include/c++/4.9/ios:41,
> from /usr/include/c++/4.9/ostream:38,
> from /usr/include/c++/4.9/iostream:39,
> from test.cpp:1:/usr/include/locale.h:29:25: fatal
> error: bits/locale.h: No such file or directory
> #include <bits/locale.h>
> ^
> compilation terminated.
Seems the compiler doesn't find /usr/include/bits/locale.h. Is that
file there? (if you have multi-arch support (I guess you have( it will
be in /usr/include/<arch>/bits/locale.h, where <arch> is the architecture
you're compiling for, e.g. "x86_64-linux-gnu" or "arm-linux-gnueabihf"
or something similar).
This file comes with libc6-dev. I didn't see that one in the list
you provided, but I may have missed it.
Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlngvngACgkQBcgs9XrR2kazMwCfbUrYGL2F/EPj1ufcTMLEyWnI
fW0An0Q+fOGF1ShnC1VHWfYKYm16exCw
=Y+5x
-----END PGP SIGNATURE-----
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
g++ can't build "Hello World" programm Evgeny <evgggd@gmail.com> - 2017-10-13 15:20 +0200
Re: g++ can't build "Hello World" programm <tomas@tuxteam.de> - 2017-10-13 15:30 +0200
Re: g++ can't build "Hello World" programm "Thomas Schmitt" <scdbackup@gmx.net> - 2017-10-13 16:50 +0200
Re: g++ can't build "Hello World" programm Evgeny <evgggd@gmail.com> - 2017-10-18 21:10 +0200
Re: g++ can't build "Hello World" programm Greg Wooledge <wooledg@eeg.ccf.org> - 2017-10-18 21:20 +0200
Re: g++ can't build "Hello World" programm <tomas@tuxteam.de> - 2017-10-18 21:30 +0200
Re: g++ can't build "Hello World" programm Evgeny <evgggd@gmail.com> - 2017-10-18 22:10 +0200
Re: g++ can't build "Hello World" programm tomas@tuxteam.de - 2017-10-18 22:40 +0200
Re: g++ can't build "Hello World" programm "Thomas Schmitt" <scdbackup@gmx.net> - 2017-10-18 22:10 +0200
csiph-web