[m-users.] Linker error because of double library
Volker Wysk
post at volker-wysk.de
Wed Mar 11 19:29:34 AEDT 2026
Hi
After installing my improved ODBC library (with "mmc --make ...
libodbc.install"), the programs which use it can't be linked any longer. I
get linker errors about ODBC identifiers which aren't known.
The reason is has to do with a double libary after the Mercury library has
been installed: "libodbc.so" is the Mercury "odbc" library and in the system
ODBC library as well (in the Ubuntu package "libodbc2"). Both contain the
"libodbc.so.2" file. This shouldn't be a problem, since the mercury library
is specified with "-ml odbc", whereas the system library is "-l odbc".
I'm using the rotd-2026-02-28 version of the compiler. I think it is a
Mercury problem, because it worked before I upgraded to rotd-2026-02-28.
Cheers,
Volker
More information about the users
mailing list