This is the mail archive of the
cygwin
mailing list for the Cygwin project.
clang dependencies
- From: Alberto Escrig Vidal <alberto dot escrig at itc dot uji dot es>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 13 Feb 2018 18:07:07 +0000
- Subject: clang dependencies
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=alberto dot escrig at itc dot uji dot es;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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