in reply to Re^4: connecting to mssql on rhel7 with new mssql driver
in thread connecting to mssql on rhel7 with new mssql driver

/opt/rh/devtoolset-6/root/usr/libexec/gcc/x86_64-redhat-linux/6.3.1/ld: cannot find -lodbc

Why are you not using the system ld? This should be /usr/bin/ld on RHEL7. Are you sure that the gcc toolchain has been installed properly?

Try running ls -lZH /usr/bin/{gcc,ld} and see if they exist OK.