i am including
#include<sqlext.h>
#include<sql.h>
while writing a program for database connection in c++ (not visual c++)
the compiler is giving error in both
my question is while allocating the environment or while creating a database connection in c++ which header files do we need
and also is there any tuorial link for database connection through c++
i am working on solaris and not in visual c++
please can any body help me
you have not mentioned the following
1) how do u connect to the database?
a)through the generic connectivity(ODBC)
b) or database native drives
2) do u use e-sqlc program mode headers or pro-c headers?
can u plz post the errors,
so that it would be helpful for better analysis.
#include <filename.h>
means the file has to be in /usr/include....
#include "filename.h"
means to search in the current directory for the file, then look in any directory speficied by cc -I<directory>
ramneek
October 20, 2005, 11:38pm
4
i know what u have said
but my problem is i am not ablr to find
sql.h , sqlext.h in
/usr/include
or
/usr/local/mysql/include
or
/usr/local/mysql/include
i cant include them in my program
#include<sql.h> or
#include<sqlext.h>
both when i include in my program it gives error
like sql.h is not a directory
now tell me what to do
find / -name sqlext.h -print 2> /dev/null
If this produces no results, then you need to reinstall your development kit (ot whatever it is called for your db). Then use the quoted syntax: #include "sqlext.h"
and use the -I option on the compiler.