Back to the month index |
Back to the list index
|
Robert Mongeon (rmongeon@together.net)
Tue, 03 Sep 1996 09:43:52 -0400
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Dave Shevett: "Re: [mSQL] Chat Rooms"
- Previous message: Corrado A. Agusto: "[mSQL] ...from scratch"
- Next in thread: Henry Minsky: "Re: [mSQL] C API and linking"
- Reply: Henry Minsky: "Re: [mSQL] C API and linking"
Message-Id: <199609031349.JAA24400@sequoia.together.net> Date: Tue, 03 Sep 1996 09:43:52 -0400 From: rmongeon@together.net (Robert Mongeon) Subject: Re: [mSQL] C API and linking>Very 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
>
This seemed to work. GCC no longer complains about the the mSQL library
not being there. However, it does look like there is something in the msql
library that is not being referenced properly.
gcc test.c -I/usr/local/Minerva/include -L/usr/local/Minerva/lib -lmsql
Undefined first referenced
symbol in file
socket /usr/local/Minerva/lib/libmsql.a(libmsql.o)
gethostbyname /usr/local/Minerva/lib/libmsql.a(libmsql.o)
setsockopt /usr/local/Minerva/lib/libmsql.a(libmsql.o)
getservbyname /usr/local/Minerva/lib/libmsql.a(libmsql.o)
ntohs /usr/local/Minerva/lib/libmsql.a(libmsql.o)
inet_addr /usr/local/Minerva/lib/libmsql.a(libmsql.o)
shutdown /usr/local/Minerva/lib/libmsql.a(libmsql.o)
htons /usr/local/Minerva/lib/libmsql.a(libmsql.o)
connect /usr/local/Minerva/lib/libmsql.a(libmsql.o)
ld: fatal: Symbol referencing errors. No output written to a.out
---------------------------------------------------------------------------
If anyone thinks this is off topic please let me know and I'll take it
off the listserv. I think that this material is a prime candidate to add to
the FAQ.
-Rob
--------------------------------------------------------------------------
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: Dave Shevett: "Re: [mSQL] Chat Rooms"
- Previous message: Corrado A. Agusto: "[mSQL] ...from scratch"
- Next in thread: Henry Minsky: "Re: [mSQL] C API and linking"
- Reply: Henry Minsky: "Re: [mSQL] C API and linking"