if (!MYSQLSUCCESS(rc))
{
SQLFreeEnv(henv);
SQLFreeConnect(hdbc);
// error_out();
exit(-1);
}
}
the error on compilation is :
Undefined first referenced
symbol in file
SQLConnect /var/tmp/ccnGf8ud.o
SQLAllocEnv /var/tmp/ccnGf8ud.o
SQLFreeEnv /var/tmp/ccnGf8ud.o
SQLAllocStmt /var/tmp/ccnGf8ud.o
SQLAllocConnect /var/tmp/ccnGf8ud.o
SQLFreeConnect /var/tmp/ccnGf8ud.o
ld: fatal: Symbol referencing errors. No output written to d
collect2: ld returned 1 exit status
You have to link against the mysql client library, you probably should also point to the mysql include path, too:
Exactly where the -L and -I point depend on where (and if) the library and include files ive on your system.
i just want to know that what libraries u need to compile the database program
because i think i am working on older version of solaris so i dont have sql.h and sqlext.h header files also, but i downloaded those files form the net
somebody told me that i should use -lsql while compiling
like
g++ <filename.cpp> -lsql
i serached it in all the possible directories of my system but i couldnt get it
1)so i am unable to understand which files u need to include and what libraries u need when u want a database to be connected to c++.
2) if the libraries of database r not in the system then from where we can download it
These function calls look like ODBC calls so I'm assuming you're trying to use unixODBC. If not, you're gonna need it because Microsoft ODBC hasn't been ported to unix yet, and isn't likely to be anytime this millenium
They have a faq entry relating to this very problem. In short you need to link with -lodbc .
I have a reseller account with hostgator, which means i have WHM and Cpanel. I have set up a staging environment for one of my wordpress installations (client website), which is essentially sitting at staging.domain.com (live site is at domain.com). The staging website is a complete copy of the... (1 Reply)
I installed Oracle 10 software on Solaris 11 Express, everything was fine execpt I can't create database using dbca.rsp file. I populated file with following options.
OPERATION_TYPE = "createDatabase"
GDBNAME = "solaris_user.domain.com"
SID = "solaris_user"
TEMPLATENAME = "General... (0 Replies)
hi..
i have a need .. my php runs on my linux redhat box with mysql.. i want my php code to refer another mysql database
which is in solaris 10 x86... can u tell me the procedure ..
how it can be done through php .. sorry am new to php...
is it possible to redirect from linux mysql to... (7 Replies)
i've got a database setup that references user inputs to see if they are already inputted. What I am wanting to do is allow the user to update the database by typing
"update: name" where name is someone already in the database.
echo "Enter your name."
read NAME
location=`find . -name... (2 Replies)
how can we connect to database(psql) using c language?.
Any one help.Pls say the hader file and function's avilable in C for database operation(like connecting,selecting,etc...). (3 Replies)
Hai ,
can any one suggest me any site where the mysql tutor for linux is avialable i am new to the linux mysql so i want to know right from the basics and how can i connect those database to planner tool in linux
:)
Regards
Sanju (1 Reply)
I am looking for a database that i can use on Red Hat Linux 8.0. I wish to store records about my clients in it. I do not wish for i to be used on a server (3 Replies)