Loading ...
Sorry, an error occurred while loading the content.

Re: [blug-prog] compiling mysql

Expand Messages
  • Dushyanth Harinath
    Hi, gulshan wrote ... i think it shuld be gcc -Lpath-to-the-mysql-library database.c -lmysqlclient HTH cheers dushyanth -- The best thing about GNU/Linux |
    Message 1 of 5 , Dec 4, 2001
    • 0 Attachment
      Hi,

      gulshan wrote
      > i am getting this error:
      >
      > undefined reference to 'mkstemp64@GLIBC_2.2'
      > collect2: ld returned 1 exit status
      >
      > while compiling
      >
      > gcc -Lpath-to-the-mysql-library /lib/libmysqlclient.so
      > database.c

      i think it shuld be
      gcc -Lpath-to-the-mysql-library database.c -lmysqlclient

      HTH
      cheers
      dushyanth

      --
      The best thing about GNU/Linux | Dushyanth Harinath
      is the people who use it. | Archean Infotech
      -Kenneth W. Melvin | www.archeanit.com



      -----------------------------------------
      This email was sent using SquirrelMail.
      "Webmail for nuts!"
      http://squirrelmail.org/
    • gulshan
      sorry getting the same error regards gulshan ... __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo!
      Message 2 of 5 , Dec 4, 2001
      • 0 Attachment
        sorry getting the same error
        regards
        gulshan
        --- Chirag Kantharia <chyrag@...> wrote:
        > On Tue, Dec 04, 2001 at 10:06:40PM -0800, gulshan
        > wrote:
        > | i am getting this error:
        > | undefined reference to 'mkstemp64@GLIBC_2.2'
        > | collect2: ld returned 1 exit status
        > | while compiling
        > | gcc -Lpath-to-the-mysql-library
        > /lib/libmysqlclient.so
        > | database.c
        >
        > I am not sure if the error's cos of the incorrect
        > `syntax', but try the
        > following;
        >
        > gcc -Lpath-to-mysql-library -lmysqlclient database.c
        >
        > chyrag.
        > --
        > Chirag Kantharia, chyrag.dhs.org/
        > Linux scrooge 2.4.16 #3 Thu Nov 29 17:41:06 IST 2001
        > i686 unknown
        >
        >


        __________________________________________________
        Do You Yahoo!?
        Buy the perfect holiday gifts at Yahoo! Shopping.
        http://shopping.yahoo.com
      • Chirag Kantharia
        ... ... ... 0. Do you have glibc 2.2 (devel) installed? 1. Are you using the same prototype as defined in stdlib.h? chyrag. -- Chirag Kantharia,
        Message 3 of 5 , Dec 4, 2001
        • 0 Attachment
          On Tue, Dec 04, 2001 at 10:38:58PM -0800, gulshan wrote:
          | sorry getting the same error
          <snip>
          | > | undefined reference to 'mkstemp64@GLIBC_2.2'
          | > | collect2: ld returned 1 exit status
          <snip>
          | > gcc -Lpath-to-mysql-library -lmysqlclient database.c

          0. Do you have glibc 2.2 (devel) installed?
          1. Are you using the same prototype as defined in stdlib.h?

          chyrag.
          --
          Chirag Kantharia, chyrag.dhs.org/
          Linux scrooge 2.4.16 #3 Thu Nov 29 17:41:06 IST 2001 i686 unknown
        Your message has been successfully submitted and would be delivered to recipients shortly.