Re: g++ can't build "Hello World" programm
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Oct 13, 2017 at 09:17:32AM -0400, Greg Wooledge wrote:
> On Fri, Oct 13, 2017 at 07:11:28PM +0600, Evgeny wrote:
> > error: bits/locale.h: No such file or directory
>
> Make sure build-essential is installed.
>
> > #include <bits/locale.h>
> > ^
> > compilation terminated.
>
> Make sure the file uses Unix newline (line feed) terminators, and not
> Microsoft's CR-LF terminators.
This is a good point too!
But a quick test on my box seems to suggest that GCC just doesn't care.
It seems to treat CR as normal whitespace. A minimal hello world stored
with DOS line endings compiles and runs fine.
Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlngv7AACgkQBcgs9XrR2kaangCdGYtdKyykz6xmV02eZMj/YgJl
lYkAn3lVxeogfaaNXh/Ar34ZqgRFndaW
=yWxe
-----END PGP SIGNATURE-----
Reply to: