How to resolve the below error while running a c program to connect to Ms SQL server from Linux fedora7 using mssqlodbc
Need to connect to Ms SQL server from c app on Linux fedora7 using msqlodbc
gcc -o prog prog.c -lc -lpthread -lodbcinst -lodbc -lm
/lib64/libpthread.so.0: undefined reference to `__h_errno@GLIBC_PRIVATE'
lib64/libpthread.so.0: undefined reference to `__mktemp@GLIBC_PRIVATE'
tried checking dependencies of libODBC using ldd and libc.so.6 is being pointed and also checked whether these symbols are present in libc.so.6 using nm -gdf libc.so.6. both the symbols are present in libc.so.6. still getting Undefined reference error.