Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Embedded SQL for C

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-09-15 : 08:39:28
Vrushali writes "I have a .sqc file to be precompiled using the SQL Server nsqlprep precompiler. The .sqc file contains a set of ifdef statements for a particular version of SQL Server.

For example:

#ifdef SQL65
Some statement1 to be executed
#endif
and so on...

The #define (for example SQL65) is done in the VC++ Project settings (Version of VC ++ = 5.0)

This setting is not available to the nsqlprep precompiler.

However, the compiler totally ignores the statements inside the #ifdef and does not generate them in the .c file.
So in the above exmaple the entire code from #ifdef.. Statement 1 to #endif is missing in the generated .c file.

I need to hav the sam source file for all versions of SQL Server, so #define inside the code is not possible.

Please let me know if some setting is required for nsqlprep or if there is some way I can go round this problem."
   

- Advertisement -