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 strmov() function defined in m_string.h but
>at compilation time I get the
>following errors.
>JUST BECAUSE I INCLUDED m_string.h into my file !!!!
Did you also include any other include files on which m_string.h might
depend? For instance, line 93 uses the NEAR symbol, which is defined
in global.h. If you didn't include global.h before m_string.h, you
will of course have problems.
>--------------------------------
>gcc -g Bug_Report.c -o first.o -L/usr/lib/mysql
>-I/usr/include/mysql/ -lmysqlclient
>In file included from Bug_Report.c:3:
>/usr/include/mysql/m_string.h:93: parse error before `_dig_vec'
>/usr/include/mysql/m_string.h:93: warning: data definition has no
>type or storage class
>/usr/include/mysql/m_string.h:149: parse error before `pchar'
>/usr/include/mysql/m_string.h:151: parse error before `pchar'
>/usr/include/mysql/m_string.h:154: parse error before `s'
>/usr/include/mysql/m_string.h:156: parse error before `my_string'
>/usr/include/mysql/m_string.h:169: parse error before `_VARARGS'
>/usr/include/mysql/m_string.h:170: parse error before `_VARARGS'
>/usr/include/mysql/m_string.h:171: parse error before `_VARARGS'
>/usr/include/mysql/m_string.h:172: parse error before `_VARARGS'
>/usr/include/mysql/m_string.h:173: parse error before `_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 ideeas .
>
>Thank you
>Nicu
>
>Sinisa Milivojevic wrote:
>
>> Nicu Popovici writes:
>> > Hi Sinisa,
>> >
>> > I get another error now. It seems that I managed to pass by
>>that error. Here it is what
>> > I get now:
>> >
>> > ------------------
>> > Failed to connect to database! Error Protocol mismatch. Server
>>Version = 10 Client Version =
>> > 9 ;
>> > ------------------
>> >
>> > What shall I do ?
>> >
>> > Regards,
>> > Nicu
>> >
>>
>> Get a newer libmysqlclient version.
>>
>> Regards,
>>
>> Sinisa
>>
>> ____ __ _____ _____ ___ == MySQL AB
>> /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
>> /*/ /*/ /*/ \*\_ |*| |*||*| mailto:[EMAIL PROTECTED]
>> /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca, Cyprus
>> /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____
>> ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
>> /*/ \*\ Developers Team
>
>
>---------------------------------------------------------------------
>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 unsubscribe, e-mail <[EMAIL PROTECTED]>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
--
Paul DuBois, [EMAIL PROTECTED]
---------------------------------------------------------------------
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 unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php