mridoni / gixsql

GixSQL is an ESQL preprocessor and a series of runtime libraries to enable GnuCOBOL to access PostgreSQL, ODBC, MySQL, Oracle and SQLite databases.
GNU General Public License v3.0
16 stars 8 forks source link

Missing libfmt.dll / libfmt.a from Windows binary releases #167

Open ddeclerck opened 1 year ago

ddeclerck commented 1 year ago

Hi,

The binary releases are missing the libfmt library. I'm trying to use the binary release of GixSQL (1.20) in a Win7+Cygwin+MinGW environment, which does not offer a libfmt library. Preprocessing works fine, but when trying to compile the preprocessed Cobol programs, I get lots of complaints about missing symbols from libfmt, such as :

 undefined reference to `fmt::v9::detail::assert_fail(char const*, int, char const*)'

I had to manually build and install libfmt (specifically version 9.1), and add it to my cobc command line to go further.

Now I have an access violation (C0000005) when loading libgixsql-pgsql.dll, but I don't know if it is related or not to that libfmt issue. EDIT: works fine when building GixSQL from source

mridoni commented 1 year ago

Hello, this is probably to some library/compiler version mismatch, libfmt moves very fast. I will check the packages for the next release. I am also thing of adding a configure option to allow building with the "internal" version of libfmt that spdlog brings along.

Thanks