UE4Editor-myPlugin.dll missing then project could not be compiled

I made a seperated project to use sql then I put it in a .lib and then to integrate it in unreal I made a plugin.
I have other plugins so I based myself on that, (got my .uplugin and .build.cs)

So in VS, when I compiled, I got an error saying that myPlugin.ext couldn’t be created. Unreal build tool did not give any other details.
So I striped the .h of all the definitions and then recompiled, worked, put back the definitions back in there, and magically it compiled. (What?)

Now When I start the editor it says that my module is missing (UE4Editor-myPlugin.dll) and asks me if I’d like to rebuild them now, I say yes and it says my project could not be compiled.

In my Build.cs I have correctly indicated the .lib path and also the includes for the function definitions.

No idea what is going on or what I am supposed to do to make this work.

Missing some reference in places, thing is cumbersome, be careful in the dependencies is all.