Back to the month index |
Back to the list index
|
Henry Minsky (hqm@ua.com)
Mon, 2 Sep 1996 20:28:12 -0700
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Min Lee: "[mSQL] Does php support functions?"
- Previous message: Henry Minsky: "Re: [mSQL] C API and linking"
- In reply to: Robert Mongeon: "Re: [mSQL] C API and linking"
Date: Mon, 2 Sep 1996 20:28:12 -0700 From: Henry Minsky <hqm@ua.com> Message-Id: <199609030328.UAA14207@merlin.datawave.net> Subject: Re: [mSQL] C API and linkingVery simple -- you need to put your libraries AFTER the object file which
references it.
Try
gcc test.c -I/usr/local/Minerva/include -L/usr/local/Minerva/lib -lmsql
X-Sender: rmongeon@together.net
X-Mailer: Windows Eudora Version 1.4.3
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 02 Sep 1996 19:05:31 -0400
From: rmongeon@together.net (Robert Mongeon)
Sender: owner-msql-list@bunyip.com
Precedence: bulk
Reply-To: msql-list@bunyip.com
Errors-To: Errors-To: owner-msql-list@bunyip.com.Hello.all
I know that this might be considered off topic but I decided I would give it
a try anyway, since the other alternative would be to post it to comp.lang.c and
recieve the flaming of a lifetime. Anyway, I have a question regarding
using the mSQL API and linking it up to the mSQL library. I have some
sample source
code that #includes "msql.h". When I compile with the command:
gcc -I/usr/local/Minerva/include -L/usr/local/Minerva/lib -lmsql test.c
I get this from my Unix shell:
Undefined first referenced
symbol in file
msqlConnect /tmp/cca002391.o
ld: fatal: Symbol referencing errors. No output written to a.out
I know for sure that the header file was installed in the default location
because if I don't specify the first parameter GCC complains that it can't find
the header file.
There must be something real simple that I'm overlooking. Does anybody know
what I'm doing wrong??
Thanks,
Robert Mongeon
--------------------------------------------------------------------------
To remove yourself from the Mini SQL mailing list send a message containing
"unsubscribe" to "unsubscribe" to msql-list-request@bunyip.com. Send a message containing
"info msql-list" to majordomo@bunyip.com for info on monthly archives of
the list. For more help, mail owner-msql-list@bunyip.com NOT the msql-list!
--------------------------------------------------------------------------
To remove yourself from the Mini SQL mailing list send a message containing
"unsubscribe" to "unsubscribe" to msql-list-request@bunyip.com. Send a message containing
"info msql-list" to majordomo@bunyip.com for info on monthly archives of
the list. For more help, mail owner-msql-list@bunyip.com NOT the msql-list!
- Next message: Min Lee: "[mSQL] Does php support functions?"
- Previous message: Henry Minsky: "Re: [mSQL] C API and linking"
- In reply to: Robert Mongeon: "Re: [mSQL] C API and linking"