public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 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

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).