[cfe-dev] 转发: 回复: Fail to compile clang-wpa.cpp

Óscar Fuentes ofv at wanadoo.es
Sun Apr 24 07:38:17 PDT 2011


arrowdodger <6yearold at gmail.com> writes:

>> I have changed the command to
>>
>> clang++ -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS clang-wpa.cpp -o
>> clang-wpa
>>
>> And I got the following errors:
>>
>
> As i said, use llvm-config script. It will give you all necessary flags
> needed to compile your program.

Actually, he's missing the list of required libraries. Including the
clang ones which are not provided by llvm-config.

My advice to the OP is to learn first how to invoke a C++ compiler,
what's a linker and how to use them in the generic case.




More information about the cfe-dev mailing list