This is a follow up of what I did...
I did the compiling last night, first taking a good look at the docs... Then took the necessary steps to build the import libraries as well as compiling the new dll which uses the base dll:
First, created the definitions file for BASEDLL. BASEDLL had exported functions BASEDLLGETVERSION and BASEDLLGETAUTHOR. I used pexports to do that. (The DLL is a test DLL that my friend made for me to demonstrate the use of DLLs [using MSVC])
#2... created the interface library. I used dlltool for that, including BASEDLL.DLL, and the definitions file BASEDLL.def created from above. The output was a file name BASEDLL.a
-=Now heres where I compile the new dll=-
#3... compiled the source files for the new DLL using gcc. The output files where files having .o extensions
#4... created the DLL with dllwrap. I included on the command line all .o files + the export definitions file for the new DLL + BASEDLL.a, the interface library.
As I remember, I got undefined references to both functions. then dllwrap exited with status 1. Now new dll was created. There must be something wrong to the parameters that I used. But to the many experiments I did, I can't even remember the exact parameters.
Assuming you had those conditions.. how would you create the import libraries. As I've said, the fact that it got undefined references is that I created the import libraries wrong... anybody got hints on how I will have to do this?
Thanks in advance