Thread: MSVC 2008 - creating import library

  1. #1
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733

    MSVC 2008 - creating import library

    Hi there,

    I'm not familiar with Microsoft Visual Tools, I want to create an import library in COFF format (so GCC can use it). For OMF there is implib which works perfectly. I want to create .lib from d3dx81ab.dll and am using the following .bat file:

    Code:
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\dumpbin.exe" /EXPORTS:d3dx81ab.dll
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\lib.exe" /DEF:d3dx81ab.def
    pause
    The output is:

    Code:
    D:\Programming\DirectX81\lib>"C:\Program Files\Microsoft Visual Studio 9.0\VC\bi
    n\dumpbin.exe" /EXPORTS d3dx81ab.dll
    
    D:\Programming\DirectX81\lib>"C:\Program Files\Microsoft Visual Studio 9.0\VC\bi
    n\lib.exe" /DEF d3dx81ab.def
    
    D:\Programming\DirectX81\lib>pause
    Aby kontynuować, naciśnij dowolny klawisz . . .
    No output is generated and no files are created. There is no error information. The .bat file is in the same directory with d3dx81ab.dll, I also checked /WINDOWS/system32 for possible output.
    I'm following this:
    How To Create 32-bit Import Libraries Without .OBJs or Source

    I also tried writing .DEF files with the necessary functions by hand and use lib.exe only, but nothing has happened either.
    I tried: /EXPORTS:d3dx81ab.dll and /EXPORTS:<space>d3dx81ab.dll

    Has anyone Microsoft Visual 2003? I've heard there is omf2coff which would be useful, I know its not redistributable, but I'd be very grateful if someone sent it to me.

    Any ideas?
    Thanks

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    >> I want to create an import library in COFF format (so GCC can use it).
    You should be using GCC tools to create an import library for GCC.
    http://www.mingw.org/wiki/CreateImportLibraries

    Have you considered using the DirectX libs and headers that come with MinGW? TDM's version has D3D9 headers and libs: http://tdm-gcc.tdragon.net/

    Apparently, MinGW worked directly with the DirectXSDK: http://www.codeproject.com/KB/directx/mingw3d.aspx (issues reported in the comments).

    Visual Studio Express is another option.

    gg

  3. #3
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733
    Thanks, that worked! Actually GCC has no problems with DirectX libraries and links fine with them, but there was one in old DirectX 8 - d3dx8.lib (d3dx81ab.dll) which caused some problems.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    d3dx81ab.dll seems to be a Delphi wrapper DLL (part of Jedi) - and not a MS DLL.
    http://clootie.ru/delphi/download_dx81.html

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 12-22-2006, 02:09 AM
  2. DLL question
    By cboard_member in forum Game Programming
    Replies: 1
    Last Post: 04-24-2006, 02:19 AM
  3. Strange warning from MSVC 6
    By VirtualAce in forum Game Programming
    Replies: 7
    Last Post: 03-27-2006, 10:55 AM
  4. Creating my own library
    By gozlan in forum C Programming
    Replies: 8
    Last Post: 10-14-2002, 11:11 PM
  5. Creating extra library
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 03-28-2002, 06:48 PM