On 6/5/07, S Nassar <[EMAIL PROTECTED]> wrote:
I didn't build libmysql.so myself. This was installed with mysql. The
application code that calls mysql_init is built statically. I see this
error when building on one machine and trying to use the code on a
different machine.
Hi,
I am running an application that interfaces with MySQL from c++. When
I try to run the application, I get a segmentation fault at the line
where I call mysql_init. Here is part of the output from gdb
#0 0x081a0e78 in elf_machine_rel.0 () at ../sysdeps/i386/dl-machine.h:333
#1 0x081a113a
Hi Ali
Hi,
I am begeener to MySQL. I have installed Suse10 and MySQL and mysql++
in my
pc.
i want to connect to MySQL through C. When I am compiling the program,
I am getting the following error.
***
compile your app wi
I am getting the following error.
> ***
> gcc -o test test.c
> test.c:28:3: warning: no newline at end of file
> /tmp/cchl7IEh.o: In function `main':
> test.c:(.text+0x22): undefined reference to `mysql_i
test.c:28:3: warning: no newline at end of file
/tmp/cchl7IEh.o: In function `main':
test.c:(.text+0x22): undefined reference to `mysql_init'
test.c:(.text+0x4f): undefined reference to `mysql_real_connect'
test.c:(.text+0x65): undefined reference to `mysql_query'
At 11:33 -0500 11/13/05, Bruce Martin wrote:
Ok I have an update. I fixed my problem by passing a NULL parameter
to mysql_init() to do this I did this:
MYSQL *m;
m=mysql_init(NULL);
connection=mysql_real_connect(m,cStrdbServer,cStrdbUser,cStrdbUserPass,cStrdbName,0,NULL,0);
Which solves the
Ok I have an update. I fixed my problem by passing a NULL parameter to
mysql_init() to do this I did this:
MYSQL *m;
m=mysql_init(NULL);
connection=mysql_real_connect(m,cStrdbServer,cStrdbUser,cStrdbUserPass,c
StrdbName,0,NULL,0);
On Nov 12, 2005, at 7:44 PM, Bruce Martin wrote:
Hello all
Hello all,
I found this odd thing when writing a client in C to connect to a mysql
database server. I want to use mysql_real_query so I need the strlen()
of the sqlStatement. So prior to calling mysql_init(&m) I get the
length of the sqlStatement. I check that length and it is correct a
yes it is
im still getting the mysql_init error...
what is this usually indicataive of?? a build issue?? PATHs?? config file??
Im using the standard 'came with distribution' MySQL from SLAMD 10.1...
I've got no idea what is this distribution (Mandrake Linux for AMD 64?)
wha
2.0.0
/usr/lib64/mysql/libmysqlclient.so
/usr/lib64/mysql/libmysqlclient.so.12
/usr/lib64/libmysqlclient.so
/usr/lib64/libmysqlclient.so.12
yes it is
im still getting the mysql_init error...
what is this usually indicataive of?? a build issue?? PATHs?? config file??
Im using the standard '
i've googled and the only answer to problems like this has been to
reinstall the DB perl module. Ive tried this but still get same error.
any clues???
thanks in advance.
Ronan
Is libmysqlclient.so available in one of your LD_LIBRARY_PATH directory ?
--
Philippe Poelvoorde
COS Trading Lt
Trying to run exilog as part of the EXIM mta but getting a mysql error
both when i run from command line and as part of apache
CL
/usr/lib/perl5/site_perl/5.8.5/x86_64-linux/auto/DBD/mysql/mysql.so:
undefined symbol: mysql_init
apache error log
/usr/bin/perl: symbol lookup error:
/usr/lib
Sql binaries on my
HPUX machine and followed the instructions.
I tested that the command line 'mysql' is working and I can create
databases, users and import data.
I wrote a simple C program that does mysql_init(NULL) and then connects
to the database.
However, w
I'm new to the mySql product. I have installed the mySql binaries on my
HPUX machine and followed the instructions.
I tested that the command line 'mysql' is working and I can create
databases, users and import data.
I wrote a simple C program that does mysql_init(NULL) and t
Description:
When I try to call mysql_init() several times in my program it finishes with
segmentation fault.
This happens in different places of my program but always in mysql_init().
This is the gdb output:
#0 0x007ba6ae in malloc_consolidate () from /lib/tls/libc.so.6
#1 0x007b9e6a in
At 19:32 +0100 12/13/04, Alina Bikowska wrote:
Description:
When I try to call mysql_init() several times in
my program it finishes with segmentation fault.
This happens in different places of my program but always in mysql_init().
This is the gdb output:
#0 0x007ba6ae in malloc_consolidate
At 19:07 -0700 4/20/04, <[EMAIL PROTECTED]> wrote:
I am attempting to write a C program to access MySQL. When I run
this program, it reports that mysql_init() returned NULL,
mysql_errno returned zero, and mysql_error returned "".
Here is the program:
#include
#include
I am attempting to write a C program to access MySQL. When I run this program, it
reports that mysql_init() returned NULL, mysql_errno returned zero, and mysql_error
returned "".
Here is the program:
#include
#include
int main( void )
{
MYSQL *db;
db = mysql_
I'm having some problems with this function. I have a "conn.inc" file that
each of my web pages accesses to create the connection to my database, and
I'm trying to use the mysql_init() function but am getting a "Call to
undefined function: mysql_init()" error. Can so
I have somehow managed to create the datatype in COBOL matching
to C datatype and passed as argument to mysql_init and
mysql_real_connect.
My COBOL coding seems to working fine, but it could not able to
connect to MySQL and retrive Data. Instead it produce an error as;
Unknown MySQL
from mysql_init function of MySQL in libmysql.lib library file.
i.e., MYSQL* mysql_init(MYSQL *mysql), here actually this function require
a parameter
of MYSQL type NULL pointer and return back the MYSQL handle.
>From COBOL, If I pass a NULL pointer to this function, it wouldn'
I am trying to connect to a simple database, basically
to check that I have the gist of programming with
MySQL.
I have tried the following code:
#include
#include "linlog.h"
LinLog::LinLog(QWidget *parent, const char *name) :
PGM_Window(parent, name)
{
MYSQL mysql;
mysql_i
I'm currently writing a shared library on Solaris. When I add
mysql_init(&mysql) to the code and run the parent process, it bombs out.
Unfortunately I don't have the source for the parent process so it could be
quite hard to debug. Is there any issues with using the C api with sh
ned
symbol: mysql_init
-
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To uns
I recently had to reformat my hard drive and re-install everything.
Now when I try to run my C++ developed using Kdeveloper 2.0 the command
conn = mysql_init(NULL)
causes error "Stopped due to shared library event"
This program used to work fine so I realize it's probably
I recently had to reformat my hard drive and re-install everything.
Now when I try to run my C++ developed using Kdeveloper 2.0 the command
conn = mysql_init(NULL)
causes error "Stopped due to shared library event"
This program used to work fine so I realize it's probably
Hi,
I'm trying to compile and link a small program on Win98 with borland's
free C compiler (version 5.5.1)
Here is the code:
(test.c)
#include
#include
#include
#include
#include
int main()
{
MYSQL *mysql;
mysql = malloc(sizeof(MYSQL));
mysql_init(mysql);
printf("Ini
I get the following error, if I run DBI,DBD,mysql .../DBD/mysql/mysql.so:
symbol mysql_init: referenced symbol not found!
What can I do against this?
Stepan
-
Before posting, please check:
http://www.mysql.com/manual.php
hi,
i recently downloaded mysql-3.23.32-hp-hpux10.20-hppa1.1.tar.gz ,
and tried writing a very simple code to start with .
i just made a call to mysql_init() and mysql_connect() in the
sample code .
i used aCC ( version : aCC: HP ANSI C++ B3910B A.01.21) on a
HPUX 10.2 machine
29 matches
Mail list logo