CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jun 2012
    Posts
    58

    Unhappy 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured