Mailing List Archive



Back to the month index Back to the list index

Robert Mongeon (rmongeon@together.net)
Mon, 02 Sep 1996 19:05:31 -0400


Message-Id: <199609022311.TAA21242@sequoia.together.net>
Date: Mon, 02 Sep 1996 19:05:31 -0400
From: rmongeon@together.net (Robert Mongeon)
Subject: [mSQL] C API and linking

  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!