This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

clang dependencies


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]