Nsqlprep

Apr 16, 2004

I'm using Microsoft SQL server and have a very simple test c program with embedded sql, but cannot get the sql precompiler (nsqlprep) to run.

I have set the correct environment variables for the c compiler and the location of the include files, but always receive the error (at the end of this message - lcc is the name of the c compiler) in the c program output by nsqlprep, at which point the precompiler exits.

I'm only using one c include file <stdio.h> and whether I include it with or without the path name, or leave it out altogether I always get the same error.

The information in the T-SQL and the internet is not helpful.

Thanks

Error message from nsqlprep

lcc preprocessor error: c:history est_embedsql1.sqc:1 Syntax error in #include
Installation problem
Please enter the path for the <include> header files (for example c:lccinclude)

View 2 Replies


ADVERTISEMENT

Weird Error When Precompiling Genwin.mak With Nsqlprep

Jul 20, 2005

I am trying to compile the sample program genwin.sqc, using nsqlprepwhich is used to precompile embedded sql in C. I am getting weirderrors and that is because windows.h is included in the genwin.sqcfile. I am usingSetting the lib and include path:set INCLUDE=C:Program FilesMicrosoft SQLServer80ToolsDevToolsinclude;C:Program FilesMicrosoft SQLServer80ToolsDevToolsSamplesesqlc;%include%set LIB=C:Program FilesMicrosoft SQLServer80ToolsDevToolslib;%lib%Precompiling:nsqlprep genwin /NOACCESSMicrosoft (R) Embedded SQL for C Pre-Compiler. Version 8.00.194.Copyright (c) Microsoft Corp 1993-1998. All rights reserved.Warning: genwin.sqc, line 7978: syntax error.}Warning: genwin.sqc, line 7987: syntax error.}Warning: genwin.sqc, line 71840: syntax error.__declspec void __stdcall DragAcceptFiles(HWND,BOOLWarning: genwin.sqc, line 71842: syntax error.__declspec HINSTANCE __stdcall ShellExecuteA(HWND hwndWarning: genwin.sqc, line 71843: syntax error.__declspec HINSTANCE __stdcall ShellExecuteW(HWND hwndWarning: genwin.sqc, line 71858: syntax error.__declspec INT __stdcall ShellAboutA(HWND hWndWarning: genwin.sqc, line 71859: syntax error.__declspec INT __stdcall ShellAboutW(HWND hWndWarning: genwin.sqc, line 71941: syntax error.HWNDWarning: genwin.sqc, line 71946: syntax error.As soon as i remove windows.h, the errors disappear. It seems nsqlprepdoesnt like windows.h. How do i get over this.Would really appreciate if u can help me out.versions:OS: windows 2000 server service pack 2VC++: version 6.0SQLserver 2000: 8.00.194, RTM, Standard editionThank youAmit

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved