I am using Sybase ASE12.5 Eval copy on windows NT and want to test a embedded sql. I tried to compile the samples provided in the OCS-12_5(open client) directory. I am able to preprocess the .cp file and got the .c file then i used cl -c(Vc++ compiler) to compile and able to successfully compile the file but when i link the obj file with all the other files and try to create .exe file it gives the following error

Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

samp1.obj : error LNK2001: unresolved external symbol __sqlResults
samp1.obj : error LNK2001: unresolved external symbol __sqlepilog
samp1.obj : error LNK2001: unresolved external symbol __sqlsetintrerr
samp1.obj : error LNK2001: unresolved external symbol __sqlctdiag
samp1.obj : error LNK2001: unresolved external symbol __sqlprolog
samp1.obj : error LNK2001: unresolved external symbol __sqlinitctx
samp1.exe : fatal error LNK1120: 6 unresolved externals

can any one help me out in solving the problem i am includinf the fillowing library files libcs.lib,libct.lib,libsybdb.lib.

Please also give me the solution of how to find out where the problem exists as i could not able to get where the problem lies in the above error messages.

Thanks
Kamalakar