LRN wrote:
I have a project that uses autoconf/automake/libtool, and it produces shared libraries (on Windows that would be .dll) and static libraries (.a). Which modifications are necessary for it to start outputing .lib libraries (the ones that could be linked with link.exe) along with .dll's? I can hack configure script and add calls to lib.exe, but that doesn't seem right, and i would rather try doing that in configure.ac.
You didn't specify compiler. If it is GCC(mingwXX target) compiler produce import libraries with suffix ".dll.a". In most cases just changing suffix work. Exception is both direction (.lib<->.dll.a) is for exported variables. In general even MSVC didn't produce compatible import libraries. Library created by compiler version X may not work for version Y. I'm not informed that this issue is resolved.
Def-files are more portable and some projects prefer this way. Roumen _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool