[cfe-dev] compiling C++ with clang++

Salman Pervez spervez at purdue.edu
Tue Mar 2 19:35:59 PST 2010


OK, solved. thanks for all the help!

Salman

On Mar 2, 2010, at 10:21 PM, Salman Pervez wrote:

>
> On Mar 2, 2010, at 10:17 PM, Eric Christopher wrote:
>
>>
>> On Mar 2, 2010, at 7:12 PM, Salman Pervez wrote:
>>
>>> oops...I did rebuild but wasnt in the top level dir. Here's what I
>>> get after rebuilding.
>>>
>>> /scratch/spervez/llvm-top/llvm/Debug/lib/clang/1.1/include
>>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4
>>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/x86_64-pc-
>>> linux-gnu
>>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/backward
>>> /usr/include
>>> End of search list.
>>> In file included from vec1.cpp:1:
>>> In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/
>>> include/g++-v4/iostream:44:
>>> In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/
>>> include/g++-v4/ostream:44:
>>> In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/
>>> include/g++-v4/ios:43:
>>> In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/
>>> include/g++-v4/iosfwd:46:
>>> In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/
>>> include/g++-v4/bits/postypes.h:46:
>>> In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/
>>> include/g++-v4/cwchar:48:
>>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4/cstddef:
>>> 47:15: fatal error:
>>>     'stddef.h' file not found
>>> #include_next <stddef.h>
>>>             ^
>>> 1 diagnostic generated.
>>>
>>
>> OK. Where's stddef.h on your system? On mine it's in /usr/include :)
>>
>
> usr/src/linux-2.6.29/include/linux/stddef.h
> /usr/include/linux/stddef.h
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/stddef.h
>
> Salman
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list