Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with nsqlprep

Status
Not open for further replies.

damgog

Programmer
Jul 12, 2001
10
IE
I am using SQL Server 2000 on Windows 2000, and I am trying to get embedded sql working. I am also using the djgpp c compiler from delorie.com. When I run the sqlprep utility on one of the examples that comes with sql server, example1.sqc, I get the following:

gcc.exe: /E: No such file or directory (ENOENT)
gcc.exe: /Tc: No such file or directory (ENOENT)
Warning: c:\embeddedSQL\example1.sqc, line 1: syntax error.

However, this still generates the .c file. When I try to compile the c file using gcc, I get the following:

c:\embeddedSQL\example1.c:14: parse error before `sqlaaloc'
c:\embeddedSQL\example1.c:18: warning: data definition has no type or storage class
c:\embeddedSQL\example1.c:20: parse error before `sqlxcall'
c:\embeddedSQL\example1.c:26: warning: data definition has no type or storage class
c:\embeddedSQL\example1.c:28: parse error before `sqlacall'
c:\embeddedSQL\example1.c:33: warning: data definition has no type or storage class
c:\embeddedSQL\example1.c:35: parse error before `sqladloc'
c:\embeddedSQL\example1.c:37: warning: data definition has no type or storage class
c:\embeddedSQL\example1.c:39: parse error before `sqlasets'
c:\embeddedSQL\example1.c:42: warning: data definition has no type or storage class
c:\embeddedSQL\example1.c:44: parse error before `sqlasetv'
c:\embeddedSQL\example1.c:51: warning: data definition has no type or storage class
c:\embeddedSQL\example1.c:53: parse error before `sqlastop'
c:\embeddedSQL\example1.c:54: warning: data definition has no type or storage class
c:\embeddedSQL\example1.c:56: parse error before `sqlastrt'
c:\embeddedSQL\example1.c:59: warning: data definition has no type or storage class
c:\embeddedSQL\example1.c:61: parse error before `sqlausda'
c:\embeddedSQL\example1.c:64: warning: data definition has no type or storage class

I can't find any suitable resources on the web to help solve the problem.
Can anyone help?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top