Importing functions from C static library to D?

I have already converted the static lib to OMF format but still have a message like:

    .dub\build\application-debug-windows-x86-dmd_2066-1C1E0ED068478598700706764846CD8E\ftdi.obj(ftdi)
    Error 42: Symbol Undefined _FT_Open

      

In the program, I have import functions with the method I have already used. And it worked for me with other libs.

    pragma (lib, "ftd2xx_OMF.lib");
    extern (C)
    {
        FT_STATUS FT_Open(FT_HANDLE, ulong*);
        FT_STATUS FT_Close(FT_HANDLE);
        //...
    };

      

The library exists and does include these functions. I tested it by generating export / import lists using coffimplib.exe.

Any ideas?

+3


source to share





All Articles