[Mono-devel-list] remap for odbc32

Sébastien Robitaille sebastien.robitaille at croesus.com
Thu Aug 12 10:38:39 EDT 2004


Hi,

a fee weeks ago, I had a problem using Odbc because Mono was not able to find odbc32.dll.
At this time, I fixed the problem by creating a symbolic link to libodbc.so (unixODBC).

Today, I had a look at the "remap" feature of Mono and I realized that odbc32.dll was actually remapped in the config file:

<configuration>
        <dllmap dll="cygwin1.dll" target="libc.so" />
        <dllmap dll="libc" target="libc.so" />
        <dllmap dll="libintl" target="libintl.so" />
        <dllmap dll="libxslt.dll" target="libxslt.so" />
        <dllmap dll="libmySQL.dll" target="libmysqlclient.so" />
        <dllmap dll="odbc32.dll" target="libodbc.so" />
        <dllmap dll="oci" target="clntsh" />
        <dllmap dll="db2cli" target="libdb2_36.so"/>
</configuration>


To test the remap feature, I removed my symbolic link in my unixODBC lib directory and ran my application again:

System.DllNotFoundException: odbc32

Since the error was still there, I replaced the line:

<dllmap dll="odbc32.dll" target="libodbc.so" />

with:

<dllmap dll="odbc32" target="libodbc.so" />

in the config file, and ran my application again, with success this time.

My question: Should'nt the remap values for libmySQL.dll, libxslt.dll, cygwin1.dll and odbc32.dll be renamed to: libmySQL, libxslt,
cygwin1 and odbc32 in the config file?
If not, what is the rationale for adding the .dll or not in the config file?

Regards

Sébastien Robitaille
Software Developer
Croesus Finansoft Inc.





More information about the Mono-devel-list mailing list