Using MS .libs with DevC++

This is a discussion on Using MS .libs with DevC++ within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I'm curious if anyone knows how to convert MS .lib files into .a files to be used with DevC++. I'd ...

  1. #1
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564

    Using MS .libs with DevC++

    I'm curious if anyone knows how to convert MS .lib files into .a files to be used with DevC++. I'd like to make some of the SDL extension libraries available to DevC++ users.
    I use MSVC at home but DevC++ at work (because of the small size and system limitations). All the source code is available, but I don't know the process. Are there tools like Borland's implib and impdef for gcc (mingw)?
    If anyone knows the process please let me know.
    Thanks.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    There are tools like implib - but not as straightforward to use. Actually you've mentioned it: impdef is the tool you use. This is because DevC++ is primed for use with the windows ports of gcc ie cygwin and especially mingw. I seem to remember using dlltool as well, which comes as std with mingw binutils.

    If you are familiar with impdef then good luck. If not post again and i'll dig through my files and see if I can find an example of conversion, unless someone else is able to offer more speedy help.

  3. #3
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    I've got it. I did some deep digging and found two utilities.
    reimp and pexport.
    reimp takes the .lib and generates a .def then uses dlltool to build the .a file. Works great. pexport takes care of some slight differences in calling convention stuff that MS does if reimp doesn't work.

    Thanks for the help though. Now I can convert some of the useful libraries for Bloodshed users.
    Last edited by taylorguitarman; 03-21-2002 at 12:54 PM.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  4. #4
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    I'll look into it next week.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Speed test result
    By audinue in forum C Programming
    Replies: 4
    Last Post: 07-07-2008, 06:18 AM
  2. Heapsort
    By xENGINEERx in forum C Programming
    Replies: 2
    Last Post: 03-30-2008, 08:17 PM
  3. Generic heapsort
    By Sephiroth1109 in forum C Programming
    Replies: 15
    Last Post: 12-07-2007, 06:14 PM
  4. Ping
    By ZakkWylde969 in forum Tech Board
    Replies: 5
    Last Post: 09-23-2003, 01:28 PM
  5. The Timing is incorret
    By Drew in forum C++ Programming
    Replies: 5
    Last Post: 08-28-2003, 05:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21