I've compiled a C++ DLL Library using MinGW, which I want to use in my C# Project. Initially, I was developing on my desktop, where everything worked - I got no missing DLL Exceptions, and I could use the functions needed in my C# Code.
However, after moving the project to my Laptop, which has the same version of Windows, Visual Studio and MinGW, I can't get it to work. I made sure the DLL is in the correct folder and has the "Copy Always" option, I recompiled it, and checked it's dependencies with Dependency Walker, but I can't get it to work. The DLL is obviously there, File.Exists("myLib.dll") always returns true, and even adding the full path to it doesn't fix it.
The only thing that I think could be wrong is these two erros that Dependency Walker returns, but I've read that that's an error withing the DW.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Does anyone know what could be causing this? It's bothering me, because it works on one PC and not the other, but I need it to work on any Windows PC.