Look at the freetds site:
http://www.freetds.org
Download and install the libraries, write a C++ "hello world", and try to connect. All the FAQs and documentation you should need are available on the FreeTDS site.
For whatever it's worth, you can also use ODBC has an alternative to FreeTDS for accessing SQL-Server from a Linux client.
'Hope that helps .. PSM