List:General Discussion« Previous MessageNext Message »
From:Sinisa Milivojevic Date:May 27 2001 10:47am
Subject:Re: Compilation problems.
View as plain text  
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:sinisa@stripped
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaca, Cyprus
  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
             /*/             \*\                Developers Team
Thread
Compilation problems.Nicu Popovici25 May
  • Re: Compilation problems.Eric Fitzgerald25 May
  • Re: Compilation problems.Nicu Popovici26 May
    • Re: Compilation problems.Sinisa Milivojevic26 May
  • Re: Compilation problems.Nicu Popovici26 May
  • Re: Compilation problems.Nicu Popovici26 May
  • Re: Compilation problems.Nicu Popovici26 May
    • Re: Compilation problems.Sinisa Milivojevic26 May
  • Re: Compilation problems.Nicu Popovici26 May
    • Re: Compilation problems.Sinisa Milivojevic26 May
  • Re: Compilation problems.Nicu Popovici26 May
    • Re: Compilation problems.Sinisa Milivojevic26 May
  • Re: Compilation problems.Nicu Popovici26 May
    • Re: Compilation problems.Sinisa Milivojevic27 May
    • Re: Compilation problems.Paul DuBois28 May
  • Re: Compilation problems.Nicu Popovici28 May
    • Re: Compilation problems.Paul DuBois29 May
  • Re: Compilation problems.Nicu Popovici28 May
    • Re: Compilation problems.Paul DuBois29 May