On Wed, Jul 20, 2022 at 07:46:43PM -0500, Igor Korot wrote: > On Wed, Jul 20, 2022 at 7:28 PM Greg Wooledge <g...@wooledge.org> wrote: > > Can you show us the linker command that you ran, and its error message? > > This is the command generated on Gentoo:
How is that relevant to DEBIAN? > [code] > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I/home/igor/dbhandler/libodbc -I.. -I../../dbinterface -DUNICODE > -DUNIXODBC -I`odbc_config --cflags` -g -O0 -MT [...] That's all noise as far as Debian is concerned. > with the following Makefile.am: > > [code] > ## Process this file with automake to produce Makefile.in > > > lib_LTLIBRARIES = \ > libodbc_lib.la > > libodbc_lib_la_SOURCES = \ > database_odbc.cpp \ > database_odbc.h > > libodbc_lib_la_CXXFLAGS = -I../../dbinterface \ > -DUNICODE \ > -DUNIXODBC \ > -I`odbc_config \ > --cflags` > > libodbc_lib_la_LDFLAGS = -L../dbinterface \ > -ldbinterface \ > `odbc_config \ > --libs` \ > -lodbcinst > [/code] It looks like you've made some false assumptions about this library. Apparently it has different linker options and library filenames on different platforms, and moreover, different *means of learning those names*. Sounds like a real bitch to work with. Oh right, it's ODBC, so it's always going to be horrible, isn't it. Good luck!