List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:May 29 2001 3:43am
Subject:Re: Compilation problems.
View as plain text  
At 10:22 AM -0400 5/28/01, Nicu Popovici wrote:
>Hello,
>
>I took out the m_string.h file from include directive and I get the following
>error

Well, sure.  You already know that you need that file; taking it out
won't help anything.

>----------------
>
>  gcc -g Bug_Report.c -O -o TEST1 -I/usr/include/mysql -L/usr/lib/mysql
>-lmysqlclient -lnsl
>/tmp/ccWyxVrf.o: In function `main':
>/home/nicu/QA/Bug_Report.c:15: undefined reference to `strmov'
>collect2: ld returned 1 exit status
>
>----------------
>
>So it seems that I need the m_string.h file for the definition of  strmov()
>function.
>
>I did also include the my_global.h file along with m_string.h but I get a
>bunch of errors . Can anyone send me some C Api example to see what include
>file  to use myself.

What I suggested was that you include global.h, not my_global.h.
Try that.


>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 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:sinisa@stripped
>>  >>     /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaca, Cyprus
>>  >>    /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
>>  >>    ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
>  > >>               /*/             \*\                Developers Team
>  > >


-- 
Paul DuBois, paul@stripped
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