-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 19 February 2003 03:19, payal kundu wrote:

>
> The following messages were displayed:
>
>
> exampl2.c: In function `main':
> exampl2.c:41: warning: `return' with a value, in
> function returning void
> exampl2.c:44: warning: `return' with a value, in
> function returning void

You define main() to have a return type of void, but you return a value. 
Either declare main() to return a value or else dont return a value from 
main()

> exampl2.c:21: warning: return type of `main' is not
> `int'

According to the C standard, main should be declared to return and int


> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status

The linker cant find the mysql libs. Your compile command should be:

gcc -o exampl2 exampl2.c -L /usr/lib/mysql -lmysqlclient -lz






- -- 
- -------------------------------------------------------------------
Rajarshi Guha  <[EMAIL PROTECTED]> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04  06F7 1BB9 E634 9B87 56EE
- -------------------------------------------------------------------
Q:  Why did the mathematician name his dog "Cauchy"?
A:  Because he left a residue at every pole.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+U4ZUG7nmNJuHVu4RAppfAKCXUO1vAd/h720TFU8oOPcoeVVhUACfacMb
FWXp/uekg6VrQPV2awUB8is=
=KLdI
-----END PGP SIGNATURE-----


--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to