View previous topic :: View next topic |
Author |
Message |
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Sun Oct 17, 2004 12:18 am Post subject: *.def files for C linkage |
|
|
A little bit of scrounging can turn up some useful items.
In my search for ways to simplify the export definition file creation process, I started investigating the MinGW compiler suite. Each compiler seems to have to deal with the problem in it's own way.
For those who are interested, take a look here:
Mingw Download Packages
If you scroll down a ways under "current", you will come to "w32api-3.1-src.tar.gz" which is the source for the mingw gcc windows specific includes and lib's. Since this is the src, instead of lib's, the lib directory contains -- guess what -- all the definition files (*.def) for the windows system dll files. The neat thing about this is that these def files include the critical @## symbol postfix for all the functions. All that would be necessary to convert these then would be to prepend an "_" and add the "=" followed by the base function symbols.
It's good to see, at least, that there's already a solid source for these dll export definitions if need be. This could be useful if one needed to replace outdated digitalmars libs.
- John |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Sun Oct 17, 2004 6:06 pm Post subject: Re: *.def files for C linkage |
|
|
JJR wrote: | If you scroll down a ways under "current", you will come to "w32api-3.1-src.tar.gz" which is the source for the mingw gcc windows specific includes and lib's. Since this is the src, instead of lib's, the lib directory contains -- guess what -- all the definition files (*.def) for the windows system dll files. | That's great! I downloaded a similar file recently (it was missing the magic "src" in the name). I don't know what I'd do with a bunch of *.a files (I guess they're GCC's way of saying .lib), but I can surely find use for a bunch of .def files. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|