[Libclc-dev] Compilation problems on Slackware 14.2 32-bit

Jeroen Ketema via Libclc-dev libclc-dev at lists.llvm.org
Mon Feb 5 14:51:33 PST 2018


[Adding back the mailing list in the cc]

Ok, so the clang you’re using is definitely not setup properly. This is not a libclc problem. You should inquire with the maintainer of the clang build scripts you’re using.

Jeroen

> On 5 Feb 2018, at 23:31, Zbigniew <zbigniew2011 at gmail.com> wrote:
> 
> On Mon, Feb 05, 2018 at 11:21:07PM +0100, Jeroen Ketema wrote:
> 
>> Just put the following in a file foo.cpp:
>> 
>> #include <iostream>
>> 
>> int main() {
>>  std::cout << "Hello, world!" << std::endl;
>>  return 0;
>> }
>> 
>> and compile with:
>> 
>>  /usr/bin/clang++ foo.cpp
> 
> It complains:
> 
> #v+
> foo.cpp:1:10: fatal error: 'iostream' file not found
> #include <iostream>
>         ^~~~~~~~~~
> 1 error generated.
> #v-
> 
> From what I see I have two files of such name in my /usr/include directory:
> 
> /usr/include/boost/tr1/tr1/iostream
> /usr/include/c++/5.3.0/iostream
> 
> But none of these directories is in include path; therefore in case any file
> needed from there, the path contents should be completed by adding (if I'm
> correct) "-I/sub/dir" parameters.
> 
> I believe exactly because there can be more than just one file of given name
> the path isn't made longer with each new library's addition.
> -- 
> regards,
> Zbigniew



More information about the Libclc-dev mailing list