A couple of months ago I attempted this but needed to improve my knowledge of C++. Now I'm reading the instructions again on how to set up to use the Csound API. I have RoryWalsh_CsoundAPI.pdf.
"In order to use the API you will need to download the Csound source code which can be found here: http://csound.sourceforge.net/. To build the examples below with MinGW you will need to
first create an import library by running the following instructions at command prompt.
pexports -o csound32.dll.5.1 > csound32.def
Before proceeding to the next step you may need to edit the newly created csound32.def and remove the first line which seems to cause an error. Then created the new import library using the
dlltool --dllname=csound32.dll.5.1 --input-def=csound32.def –outputlib=libcsound32.a"
I've been using version 6.15.0 for a couple of years.
I found the pexports tool here MinGW - Minimalist GNU for Windows - Browse /MinGW/Extension/pexports at SourceForge.net dated 2015. Is that the latest one?