How to interface with MySql 9.6?

realhet real_het at hotmail.com
Fri Feb 20 21:31:09 UTC 2026


On Friday, 20 February 2026 at 16:45:35 UTC, Adam D. Ruppe wrote:
> On Friday, 20 February 2026 at 16:21:58 UTC, realhet wrote:
>> Now I'm compiling only these arsd modules: mysql, jsvar,

Please help me with this linker issue:

I'm now trying to use arsd.mssql.

And the linker requires the following libs:

libcmt.lib
libvcruntime.lib
libucrt.lib

When I copy those files (I know it's bad.) It gives the error:
BuildSys: Link Error: 1 lld-link: error: undefined symbol: fileno
>>> referenced by 
>>> phobos2-ldc.lib(stdio.obj):(_D3std5stdio4File4syncMFNeZv)
>>> referenced by 
>>> phobos2-ldc.lib(stdio.obj):(_D3std5stdio4File13windowsHandleMFNdZPv)
>>> referenced by 
>>> phobos2-ldc.lib(stdio.obj):(_D3std5stdio4File4lockMFEQxQv8LockTypemmZv)
>>> referenced 18 more times

This is something triggered by a bad odbc32.lib or what?

I've found libcmt.lib in a VS2022 folder that SQL Management 
Studio installed for itself just today.

I also have 2 Deprecation messages:

Deprecation: module `etc.c.odbc.sql` is deprecated - The ODBC 3.5 
modules are deprecated. Please use the ODBC4 modules in the 
`etc.c.odbc` package.
Deprecation: module `etc.c.odbc.sqlext` is deprecated - The ODBC 
3.5 modules are deprecated. Please use the ODBC4 modules in the 
`etc.c.odbc` package.

I tried to use etc.c.odbc.odbc64 then. It had some parameter type 
mismatches: cast(short) from int. And then I got the same 
frustrating libcmt.lib linker error. o.O

     LDC - the LLVM D compiler (1.41.0):
       based on DMD v2.111.0 and LLVM 20.1.5
       built with LDC - the LLVM D compiler (1.41.0)
       Default target: x86_64-pc-windows-msvc


More information about the Digitalmars-d-learn mailing list