Nicu Popovici writes:
> 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 !!!!
> --------------------------------
> 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
Don't include m_string.h. Include only mysql.h and you will have all
functions you need.
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