* clang dependencies
@ 2018-02-13 18:07 Alberto Escrig Vidal
2018-02-13 23:35 ` Yaakov Selkowitz
0 siblings, 1 reply; 2+ messages in thread
From: Alberto Escrig Vidal @ 2018-02-13 18:07 UTC (permalink / raw)
To: cygwin
Consider the following program:
#include <iostream>
int main() {}
If I compile it with
clang++ -stdlib=libc++ foo.cpp
i get the error:
/usr/include/c++/v1/locale:197:10: fatal error: 'nl_types.h' file not found
#include <nl_types.h>
The reason is that libcatgets-devel 1.1-2 was obsoleted by cygwin-devel.
On the other hand, if I compile it with:
clang++ -stdlib=libc++ foo.cpp
it fails to link via gcc because -liconv is missing, yet I got libiconv installed. I had to manually install libiconv-dev for libiconv.a to be in /usr/lib/.
Please consider the above issues.
Looking forward to gcc-7.
Cheers
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: clang dependencies
2018-02-13 18:07 clang dependencies Alberto Escrig Vidal
@ 2018-02-13 23:35 ` Yaakov Selkowitz
0 siblings, 0 replies; 2+ messages in thread
From: Yaakov Selkowitz @ 2018-02-13 23:35 UTC (permalink / raw)
To: cygwin
[-- Attachment #1.1: Type: text/plain, Size: 1229 bytes --]
On 2018-02-13 12:07, Alberto Escrig Vidal wrote:
> Consider the following program:
> #include <iostream>
> int main() {}
>
> If I compile it with
> clang++ -stdlib=libc++ foo.cpp
> i get the error:
> /usr/include/c++/v1/locale:197:10: fatal error: 'nl_types.h' file not found
> #include <nl_types.h>
>
> The reason is that libcatgets-devel 1.1-2 was obsoleted by cygwin-devel.
It sounds like you did not update cygwin/cygwin-devel and
catgets/libcatgets-devel in sync. Could you check:
$ cygcheck -c cygwin cygwin-devel
Cygwin Package Information
Package Version Status
cygwin 2.10.0-1 OK
cygwin-devel 2.10.0-1 OK
If either those say Incomplete instead of OK -- which I suspect at least
cygwin-devel will -- then reinstall that/those package(s).
> On the other hand, if I compile it with:
> clang++ -stdlib=libc++ foo.cpp
You mean clang++ -stdlib=libstdc++ here?
> it fails to link via gcc because -liconv is missing, yet I got libiconv installed.> I had to manually install libiconv-dev for libiconv.a to be in /usr/lib/.
libiconv-devel should have been pulled in by something else, but I'll
have to take a look.
--
Yaakov
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-13 23:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13 18:07 clang dependencies Alberto Escrig Vidal
2018-02-13 23:35 ` Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).