Microsoft 开发人员网络 > 论坛主页 > Visual C++ General > Cannot open Include file(.h) in dll: error
提出问题提出问题
 

问题Cannot open Include file(.h) in dll: error

  • 2009年10月30日 6:21santoshdarekar 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hello friends,

    I am building a C library file(DLL), which I'll be using in my C# app with marshalling.

    But, I have some problem while compiling the library.

    If I have a Console app with same C code it compiles and runs fine. But, now I have created a Class library project

    and using a same Code in it. My code is using single .h file. The problem while compiling is, it can't find that .h file.

    The .h which I am using has come with third party libraries.


    But, it raises an compile time error only when I excute the program with library project.

    The Directory structure of the library project is as Below:

    -LibraryProjectDirectory
    --Debug
    ---ExpectedOutputDLLfile
    --Properties

    --Resources

    ---The third party library files

    .C file
    .vcproj


    In the Linker settings I have added the 'Resources' directory path.

    But still i'm getting the error saying, "Cannot Open Include file: .h".




    Santosh.
    • 已移动eryangMSFT2009年11月2日 7:04wrong forum (From:Common Language Runtime)
    •  

全部回复