can I use aCC..

2001-02-14 Thread Ragupathi P


hi,

  basically i am reframing my earlier question.

  i'm using  aCC ( ansic C++ compiler from HP ) on HPUX10.2
  to compile and link my small C code with libraries available
  from mysql-3.23.32-hp-hpux10.20-hppa1.1 .

  i get the following:
  /usr/ccs/bin/ld: Unsatisfied symbols:
 mysql_connect (code)
 mysql_init (code)


  i wld greatly appreciate if someone can figure out if something
  is wrong.

thank you
ragu



-
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




Re: can I use aCC..

2001-02-14 Thread Joseph Bueno

Ragupathi P a crit :
 
 hi,
 
   basically i am reframing my earlier question.
 
   i'm using  aCC ( ansic C++ compiler from HP ) on HPUX10.2
   to compile and link my small C code with libraries available
   from mysql-3.23.32-hp-hpux10.20-hppa1.1 .
 
   i get the following:
   /usr/ccs/bin/ld: Unsatisfied symbols:
  mysql_connect (code)
  mysql_init (code)
 
   i wld greatly appreciate if someone can figure out if something
   is wrong.
 
 thank you
 ragu
 
 -
 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

Hi,

Well, the linker is just telling you that he cannot find mysql library.

What are your compile and link commands ?
Have you specified mysql library in command line ?
If mysql library is not in a standard directory, have you specified
mysql library localtion (-L option) ?

Hope this helps, sorry for not being more specific but I don't have
access
to an HPUX machine anymore.
--
Joseph Bueno

-
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




Re: can I use aCC..

2001-02-14 Thread Lutz Jaenicke

On Wed, Feb 14, 2001 at 06:59:04PM +0200, Ragupathi P wrote:
 hi,
 
   basically i am reframing my earlier question.
 
   i'm using  aCC ( ansic C++ compiler from HP ) on HPUX10.2
   to compile and link my small C code with libraries available
   from mysql-3.23.32-hp-hpux10.20-hppa1.1 .
 
   i get the following:
   /usr/ccs/bin/ld: Unsatisfied symbols:
  mysql_connect (code)
  mysql_init (code)
 
 
   i wld greatly appreciate if someone can figure out if something
   is wrong.

Basically you are still not giving us the necessary information.
In my case the mysql_connect() code is in libmysqlclient.a:
ws01 48: nm libmysqlclient.a | grep mysql_connect
mysql_connect   |  6776|extern|entry  |$CODE$
So I would expect the references to be satsified if your link command
finishes with
   aCC [options] [yourmodules] -L/path/to/mysql/libraries -lmysqlclient

If you don't give us the precise command you are using, we cannot help you.

Best regards,
Lutz
-- 
Lutz Jaenicke [EMAIL PROTECTED]
BTU Cottbus   http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus  Fax. +49 355 69-4153

-
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