Back to the month index |
Back to the list index
|
Peter Samuel (psamuel@ind.tansu.com.au)
Thu, 3 Apr 1997 10:08:20 +1000 (EST)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Joshua J. Kugler: "Re: [mSQL] Generating Reports (?)"
- Previous message: Hans Anderson: "Re: PHP on NT (was Re: [mSQL] mSQL on the NT?)"
- In reply to: Tom Henry: "PHP on NT (was Re: [mSQL] mSQL on the NT?)"
Date: Thu, 3 Apr 1997 10:08:20 +1000 (EST) From: Peter Samuel <psamuel@ind.tansu.com.au> Subject: Re: [mSQL] Still can't compile simple program Message-Id: <Pine.GSO.3.96.970403100622.4247D-100000@grizzly.ind.tansu.com.au>On Wed, 2 Apr 1997, harry mitchell wrote:
> I'm baaack!
While you were away did you read the FAQ? Probably not otherwise you
would have seen this section:
Why won't my third party applications compile under Solaris 2.x?
Solaris 2.x is an SVR4 version of Unix. When compiling programs
that require network support (this includes any program that uses
the mSQL library), you must explicitly reference the networking
libraries socket and nsl:
gcc -o prog prog.c -Imsql_install_dir/include \
-Lmsql_install_dir/lib -lmsql -lsocket -lnsl
>
> I still can't get this simple program to compile.
> BTW thanks for all the responses.
>
> Here is the situation.
>
> When I compile:
>
> prompt> gcc msqltest.c -L/Home/Directory/cgi-bin/msql/msql-2.0-B4/lib
> -I/Home/Directory/cgi-bin/msql/msql-2.0-B4/include -lmsql
> Undefined first referenced
> symbol in file
> socket
> /Home/Directory/cgi-bin/msql/msql-2.0-B4/lib/libmsql.a(libmsql.o)
> gethostbyname
> /Home/Directory/cgi-bin/msql/msql-2.0-B4/lib/libmsql.a(libmsql.o)
> setsockopt
> /Home/Directory/cgi-bin/msql/msql-2.0-B4/lib/libmsql.a(libmsql.o)
> inet_addr
> /Home/Directory/cgi-bin/msql/msql-2.0-B4/lib/libmsql.a(libmsql.o)
> shutdown
> /Home/Directory/cgi-bin/msql/msql-2.0-B4/lib/libmsql.a(libmsql.o)
> connect
> /Home/Directory/cgi-bin/msql/msql-2.0-B4/lib/libmsql.a(libmsql.o)
> ld: fatal: Symbol referencing errors. No output written to a.out
Regards
Peter
----------
Peter Samuel peter@uniq.com.au
Technical Consultant or at present:
Uniq Professional Services Peter.Samuel@ind.tansu.com.au
Phone: +61 2 9206 3439 Fax: +61 2 9281 1301
--------------------------------------------------------------------------
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: Joshua J. Kugler: "Re: [mSQL] Generating Reports (?)"
- Previous message: Hans Anderson: "Re: PHP on NT (was Re: [mSQL] mSQL on the NT?)"
- In reply to: Tom Henry: "PHP on NT (was Re: [mSQL] mSQL on the NT?)"