Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #188037

Re: g++ can't build "Hello World" programm

From "Thomas Schmitt" <scdbackup@gmx.net>
Newsgroups linux.debian.user
Subject Re: g++ can't build "Hello World" programm
Date 2017-10-18 22:10 +0200
Message-ID <uC2P8-5GY-7@gated-at.bofh.it> (permalink)
References <uC1T4-55h-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

Evgeny wrote:
> any
> "bits/locale.h" among indlude files that you listed have already existed in
> my system. but g++ continue give me error message that there is no such file
> or directory

What do you get from

  g++ -o test -H test.cpp

If i rename my local
  /usr/include/x86_64-linux-gnu/bits/locale.h
then i get exactly your error message:

  ....... /usr/include/locale.h
  ........ /usr/lib/gcc/x86_64-linux-gnu/4.9/include/stddef.h
  In file included from /usr/include/c++/4.9/clocale:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/4.9/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

My g++ version is like yours
  g++ (Debian 4.9.2-10) 4.9.2


> -I/way-to-the-missing-lib,

The path up to but not including "bits" idid not help ?
Like:

  -I /usr/include/x86_64-linux-gnu/


> What can it be?

Is the the file name invisibly altered ?
What do you get when explicitely asking for its path:

  ls -ld '/usr/include/x86_64-linux-gnu/bits/locale.h'


Have a nice day :)

Thomas

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


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