|
From: Dennis W. <den...@go...> - 2008-06-25 13:15:18
|
2008/6/25 <Ale...@el...>: > Hi list, > > I have got here a project. This project is written in different languages, > mainly C, C++ and Ada. > When I do a build of the project the linker generates for all exported > functions automatically an import library for the dll. But this only happens > if the module is written in C or C++. This doesn't happen with any Ada > module, although I use pragma Export (C, ...). > > How can I avoid to write explicitly -Wl,--out-implib, to every Ada module? > > Thanks for your help > > Greetings > > Alexander Camek > I've been working on a similar problem recently, which seems to be an issue whenever $LANG != C. Try and have a look at MinGW's dlltool. If you feed it a .def file with symbols to export, it can create an import library for you. You'll probably find the gory details somewhere in the documentation; google also finds useful things on that topic. Cheers, Dennis |