clang dependencies

Alberto Escrig Vidal alberto.escrig@itc.uji.es
Tue Feb 13 18:07:00 GMT 2018


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



More information about the Cygwin mailing list