From owner-freebsd-questions Tue Oct 9 21:30:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ideal.net.au (ion.ideal.net.au [203.20.241.5]) by hub.freebsd.org (Postfix) with ESMTP id 52DAF37B403 for ; Tue, 9 Oct 2001 21:30:12 -0700 (PDT) Received: from magnesium (vanadium.staff.ideal.net.au [202.3.35.23]) by mail.ideal.net.au (8.9.3/8.9.3) with SMTP id OAA94367 for ; Wed, 10 Oct 2001 14:30:04 +1000 (EST) (envelope-from matthew.blacklow@ticca.com) Reply-To: From: "Matthew Blacklow" To: "FreeBSD Questions" Subject: GCC liinking problems Date: Wed, 10 Oct 2001 14:30:05 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-reply-to: <20011010001755.D617@hal9000.servehttp.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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