I recently started writing a C app under AIX.  I had a similar problem
with types until I found I had to include a file called "WINDOWS.H". Here
are the #includes I use:

#include        <WINDOWS.H>
#include        <sql.h>
#include        <sqlext.h>
#include        <sqltypes.h>

Hopefully that should help.  If you're still having problems, email me
privately and I'll send you some snippets of code that may be enough to
get you going. (My code is for AIX so I don't how different it'll be for
Linux, but I would think it would be similar)

Derek


On Wed, 5 Mar 2003 11:14:24 +0100, [EMAIL PROTECTED] said:
> Hi to all,
> 
> where can I find a simple example to connect a sapdb-database through
> odbc 
> with a c/c++-application
> 
> In the sapdb-doc in section (INSTALLED FILES (UNIX/LINUX)) I found a hint 
> about 
> 
> demo/eng/ODBC/sqlexamp.c
> 
> demo/eng/ODBC/sqladhoc.c
> 
> demo/eng/ODBC/Makefile
> 
> But after Installing sapdb-server and odbc-interface on my linux-box I 
> can't found the files cited.
> 
> I wrote a sample c++-program, but it won'c compile without errors. I get 
> some errors in sqltypes.h 
> 
> I think, some definitions must be set in a Makefile ( but where to find
> it 
> )
> 
> Regards
> 
> Tom 
-- 
Derek M. A. Lee-Wo
Email: (Home) [EMAIL PROTECTED]  (Work) [EMAIL PROTECTED]

    "Those who will not risk cannot win" - John Paul Jones
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to