[mapserver-dev] Unable to load DLL 'csharpmapscript': The specified module could not be found.
Michel Dastous
Michel.Dastous at bentley.com
Mon Mar 20 09:04:38 PDT 2017
Hi,
We are building mapserver 7.0 on windows, and it appears that the default build configuration generates a DLL file 'mapscript.dll', however the SWIG wrapper 'mapscript_csharp.dll' is looking for 'csharpmapscript.dll' instead:
mapscriptPINVOKE.cs:
protected class SWIGStringHelper {
public delegate string SWIGStringDelegate(string message);
static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
[DllImport("csharpmapscript", EntryPoint="SWIGRegisterStringCallback_mapscript")]
public static extern void SWIGRegisterStringCallback_mapscript(SWIGStringDelegate stringDelegate);
static string CreateString(string cString) {
return cString;
}
static SWIGStringHelper() {
SWIGRegisterStringCallback_mapscript(stringDelegate);
}
}
This problem was mentioned in 2015, in this post:
http://lists.osgeo.org/pipermail/mapserver-users/2015-December/078523.html
Any recommendation on how this should be correctly fixed?
Thanks,
Michel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20170320/5ff5b3d9/attachment.html>
More information about the mapserver-dev
mailing list