Article View: alt.linux
Article #1093Compiling with -lsocket
From: Chris Bruyere
Date: Fri, 12 Mar 2004 14:51
Date: Fri, 12 Mar 2004 14:51
15 lines
1626 bytes
1626 bytes
I'm trying to compile a server I wrote for a school project at home. I'm running Mkd 9.0 at home and Solaris 9 at school. At school I have to compile with -lsocket and at home it says that the socket package wasn't found. What I am doing wrong? Here is my error message: gcc -g -Wall -DMEMWATCH -DMW_STDIO -o rdaserver rdaserver.c memwatch.o message.o filelist.o socket.o -lsocket /usr//bin/ld: cannot find -lsocket collect2: ld returned 1 exit status make: *** [rdaserver] Error 1 Thanks Chris
Technical Details
Message-ID:
<pan.2004.03.12.14.54.15.120138@_AT_telus.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!green.octanews.net!news-out.octanews.net!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telusplanet.net!newsfeed.telus.net!clgrps13.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f65d0,eb7b2239d26960c8,start X-Google-Attributes: gidf65d0,public X-Google-Thread: 100c5f,eb7b2239d26960c8,start X-Google-Attributes: gid100c5f,public X-Google-ArrivalTime: 2004-03-12 06:51:28 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!green.octanews.net!news-out.octanews.net!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telusplanet.net!newsfeed.telus.net!clgrps13.POSTED!not-for-mail From: Chris Bruyere <bruyere1@_AT_telus.net> Subject: Compiling with -lsocket User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-ID: <pan.2004.03.12.14.54.15.120138@_AT_telus.net> Newsgroups: alt.linux,gnu.gcc MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 15 Date: Fri, 12 Mar 2004 14:51:28 GMT NNTP-Posting-Host: 142.173.234.55 X-Trace: clgrps13 1079103088 142.173.234.55 (Fri, 12 Mar 2004 07:51:28 MST) NNTP-Posting-Date: Fri, 12 Mar 2004 07:51:28 MST