Re: Compilation problems.

2001-05-28 Thread Nicu Popovici
Hello guys, I managed to compile succesfully my C program but now when I run it I get something like the following --- TEST1 Failed in SELECT , Error: You have an error in your SQL syntax near ')' at line 1 What I want to ask , I have to do

Re: Compilation problems.

2001-05-28 Thread Nicu Popovici
clude file to use myself. Regards, Nicu Paul DuBois wrote: > At 8:46 PM -0400 5/26/01, Nicu Popovici wrote: > >Hello Sinisa, > > > > I managed to get a connection to a database but now when I want to > >try to make a query on that > >database I have to use

Re: Compilation problems.

2001-05-26 Thread Nicu Popovici
`_VARARGS' /usr/include/mysql/m_string.h:174: parse error before `_VARARGS' /usr/include/mysql/m_string.h:209: parse error before `value' /usr/include/mysql/m_string.h:93: warning: array `_dig_vec' assumed to have one element Maybe you have some ide

Re: Compilation problems.

2001-05-26 Thread Nicu Popovici
Milivojevic wrote: > Nicu Popovici writes: > > > Hi Sinisa, > > > > You are right , I did a select * from user and the host field is indeed >localhost. How > > can I update that field , and I do not have a host table. Should I modify anly >this > > table or

Re: Compilation problems.

2001-05-26 Thread Nicu Popovici
p a new user on the test database and I want to connect to that database from ares.main.ro ? Thanks you for your time, Regards, Nicu > Nicu Popovici writes: > > Hello Gurus, > > > > I managed to compile and link my sample file substituting mysql_init() with > > my

Re: Compilation problems.

2001-05-26 Thread Nicu Popovici
Hello Gurus, I managed to compile and link my sample file substituting mysql_init() with my_init() and mysql_real_connect() to mysql_connect(). I get now the following error -- Failed to connect to database! Error jHost 'ares.main.ro' is not allowed to connect to this MySQL

Re: Compilation problems.

2001-05-26 Thread Nicu Popovici
Hi Sinisa, I looked on the symbols from libmysqlclient.a and indeed there is no mysql_init or mysql_real_connect there . There are mysql_kill and some other functions but the first two there are not. Regards, Nicu Sinisa Milivojevic wrote: > Nicu Popovici writes: > > H

Re: Compilation problems.

2001-05-26 Thread Nicu Popovici
;mysql); if (!mysql_real_connect(&mysql, "host","user","passwd","rt",0,NULL, 0) ) printf("Failed to connect to database! Error %s ", mysql_error(&mysql)); mysql_close(&mysql); return 0; } ----- Wha

Re: Compilation problems.

2001-05-26 Thread Nicu Popovici
that it encounters in my file. I guess that is something with mysql shared libraries !! Regards, Nicu Eric Fitzgerald wrote: > Does your Bug_Report.c have an #include line for the mysql headers? > - Original Message - > From: "Nicu Popovici" <[EMAIL PROTECTED]>

Compilation problems.

2001-05-25 Thread Nicu Popovici
Hello Gurus, I am trying to write a C client for a mysql server and I compile the example with the following line gcc -g Bug_Report.c -o test.o -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -lnsl -lsocket but I get the following linking errors /home/nicu/QA/Bug_Report.c:7: undefined re