You can use the script to analyze the source code and automatically generate the .DEF file. It can be even easier if you want to export only those functions that were declared in the header files.
Another solution is to compile the code into a static .lib and use dumpbin / SYMBOLS to create a list of all characters. You can use this list to generate .DEF for the DLL version. This approach may be nice if you are creating a static and dynamic library from the same project. The DLL will simply be the initialization of the DLL, the finalization functions + .DEF file and the declaration that it uses your static .lib.
source share