-
August 3rd, 2013, 08:43 AM
#1
include path problems
hi,
[edit: This is a general problem i have with a lot of libraries, i'm using LLVM as an illustrative example.]
I want to use the LLVM framework libraries.
So i downloaded LLVM, compiled it, added the include\ and \build\lib\ directories to my default paths and gave it a go.
however, i keep getting problems like this:
error C1083: Cannot open include file: 'llvm/Support/DataTypes.h': No such file or directory c:\users\tuli\desktop\lllvm\llvm\include\llvm-c\core.h 18
this is the code in question (core.h)
Code:
#include "llvm/Support/DataTypes.h"
Ofcourse: if you use "x.h" instead of <x.h>, it wont find the llvm/ dir, which i added previously to the include paths!
my code:
Code:
#include <llvm-c/Analysis.h>
#include <llvm-c/Disassembler.h>
int main()
{
return 0;
}
I have had this issue before with other libraries. Previously, i'd just change all the #include "..." to #include <...>.
There are way too many header files involved here, though.
What to do?
spec:
VS2010 sp1
Win 7 sp 1 x64
latest llvm
Last edited by tuli; August 3rd, 2013 at 11:27 AM.
-
August 3rd, 2013, 01:59 PM
#2
Re: include path problems
If the header is not found when you use this:
The preprocessor should re-try as if it were:
Hence, a manual change should be unnecessary.
I wonder if this is just a case of you adding wrong paths to the list of paths to be searched for headers.
-
August 3rd, 2013, 04:15 PM
#3
Re: include path problems
Resolved! Thanks!
The fault lies with some sort of cmake hiccup. DataTypes.h was located in the wrong directory, and i found a DataTypes.h.cmake in its place. Rearranging the files appropriately solved the problem.
(Previously, i just checked for the existence of "DataTypes.*"...)
It's still a little wired that i was able to resolve very similar errors by ""/<> substitution. Maybe i'll get back to that after the holydays.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|