Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 14:30:05 +1000
From:      "Matthew Blacklow" <matthew.blacklow@ticca.com>
To:        "FreeBSD Questions" <FreeBSD-Questions@FreeBSD.ORG>
Subject:   GCC liinking problems
Message-ID:  <NFBBICMIIEMNIMGOBPCMCEFPCCAA.matthew.blacklow@ticca.com>
In-Reply-To: <20011010001755.D617@hal9000.servehttp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I am trying to compile a program which includes the mysql.h header file.
Everytime I attempt to compile it I get the following error message:
"/tmp/cc6Sg0gZ.o(.text+0x3c): undefined reference to `mysql_init'"
as well as errors for the other mysql functions I call. 

I am compiling it using the following line:
"gcc code.c -I/usr/home/matthew/MySQL/include/"
and the header files are located in that directory.

Can someone please tell me what I am doing wrong.

Thanks
Matthew

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NFBBICMIIEMNIMGOBPCMCEFPCCAA.matthew.blacklow>