Hi Everyone, I have an llvm project from which I am trying to call external libraries such as boost. For some reason, when I type make, llvm can't seem to find the header files to the library even though it's in the path. I am baffled by this. For example, for boost this is what I get: " fatal error: 'boost/lambda/lambda.hpp' file not found" Do I have to modify something in the makefiles? George -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121025/a0752853/attachment.html>
Hi George Is this possibly because you haven't built llvm with shared library support? RTTI needs to be enabled to use external libraries, I followed this example: https://ece.uwaterloo.ca/~hdpatel/uwhtml/misc/boost-llvm-clang.html Regards, Sam Parker Research Student Electronic Systems Design Group Loughborough University UK ________________________________ From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] on behalf of George Baah [georgebaah at gmail.com] Sent: 25 October 2012 14:44 To: LLVM Developers Mailing List Subject: [LLVMdev] calling external libraries in llvm project Hi Everyone, I have an llvm project from which I am trying to call external libraries such as boost. For some reason, when I type make, llvm can't seem to find the header files to the library even though it's in the path. I am baffled by this. For example, for boost this is what I get: " fatal error: 'boost/lambda/lambda.hpp' file not found" Do I have to modify something in the makefiles? George -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121025/9f391cf3/attachment.html>
Eric Christopher
2012-Oct-25 18:00 UTC
[LLVMdev] calling external libraries in llvm project
Are the headers in a standard path that could be easily found by the compiler if you were to do the same thing on the command line? -eric On Thu, Oct 25, 2012 at 6:44 AM, George Baah <georgebaah at gmail.com> wrote:> Hi Everyone, > I have an llvm project from which I am trying to call external libraries > such as > boost. For some reason, when I type make, llvm can't seem to find the header > files to the library even though it's in the path. I am baffled by this. For > example, > for boost this is what I get: > > " fatal error: 'boost/lambda/lambda.hpp' file not found" > > Do I have to modify something in the makefiles? > > George > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >