Is it possible to call functions in a MSVC DDL, from C:
- .def, .a and .exp files can be generated (e.g. with pexports, dlltool)
- the definition for a DLL function typically is
DLL_EXPORT long APIENTRY devOpen(WORD idnum);
- DLL is binary, there is no source
Eventually the error comes up:
main.o:main.c:(.text+0x5b): undefined reference to `devOpen@8'
Either cygwin or mingw gcc can be used.