Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Using .def file?
Using .def file? [message #14257] Thu, 21 February 2008 02:50 Go to next message
robert brewington is currently offline  robert brewington
Messages: 3
Registered: February 2008
Junior Member
Hi,

How do I tell the linker to use a .def file?

I am using the mingw form of the environment. I need the output dll to follow a particular format so a vendor-supplied program can access the dll methods.

I need something like the /DEF:"BrewOrion.def" option to the microsoft linker...

Thanks,
brew
Re: Using .def file? [message #14261 is a reply to message #14257] Thu, 21 February 2008 10:16 Go to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

I think what you need is an import library to link your program against. This import library is created with the help of the .def file that specifies all DLL functions to export.
So the normal route to go is:

1. Write a .def file which contains DLL function names you want to export
2. Create an import library with
dlltool -d somedll.def -l libsomedll.a

3. Tell the linker to link against this import library.

You can find a good doc concerning these issues in http://www.mingw.org/MinGWiki/index.php/CreateImportLibrarie s

Matthias
Previous Topic: New install - can't find cc1plus
Next Topic: Problem Building Sample Applications
Goto Forum:
  


Current Time: Sat Apr 27 22:02:43 CEST 2024

Total time taken to generate the page: 0.95362 seconds