Plugin build query (MinGW)

I need to write a gradient texture for one of my scenes, so I’m trying to build a plugin as described here:

It compiles alright, but when I try to use dllwrap:

dllwrap -I. --export-all --output-def brick.def -o brick.dll -lm

it complains:

$ dllwrap -I. --export-all --output-def brick.def -o brick.dll -lm
c:\mingw\bin\dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want

it produced a dll, but blender complains about it being invalid when I try loading it.

It seems it needs an export definition file, so how do I generate this, or where do I get it, or if I’m wrong, what else should I do?

Hello, for Mingw I don’t know but with LCC I can help you.

You can look at , there is a little guide to compile with LCC.