Do you have Srv.h included in your project?
SK
> I am trying to create the sample XP's listed in the DevTools\Samples\ODS
> folder and I am getting a compiler error with <sql.h>. I have followed
> directions in BOL and have changed the directories for includes and
> libraries and even linked the .lib file.
> I have searched the newsgroups and web and have found a few other people
> that have had this problem but no solution. Any help?
> SYSTEM:
> VC++ 6.0 Professional Ed.
> SQL Server 2000 sp2
> Here are the errors from the 'xp_hello' sample (same for all):
> --------------------Configuration: xp_hello - Win32
> Debug--------------------
> Compiling...
> xp_hello.c
> C:\Documents and Settings\Administrator\Desktop\Writing Extended
> Procs\ods\xp_hello\xp_hello.c(42) : error C2065: 'ODS_VERSION' : undeclared
> identifier
> C:\Documents and Settings\Administrator\Desktop\Writing Extended
> Procs\ods\xp_hello\xp_hello.c(69) : warning C4013: 'srv_paraminfo'
> undefined; assuming extern returning int
> C:\Documents and Settings\Administrator\Desktop\Writing Extended
> Procs\ods\xp_hello\xp_hello.c(84) : error C2065: 'SRVBIGVARCHAR' :
> undeclared identifier
> C:\Documents and Settings\Administrator\Desktop\Writing Extended
> Procs\ods\xp_hello\xp_hello.c(84) : error C2065: 'SRVBIGCHAR' : undeclared
> identifier
> C:\Documents and Settings\Administrator\Desktop\Writing Extended
> Procs\ods\xp_hello\xp_hello.c(135) : warning C4013: 'srv_paramsetoutput'
> undefined; assuming extern returning int
> Error executing cl.exe.
> xp_hello.dll - 3 error(s), 2 warning(s)