Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs Date: Fri, 24 Oct 2003 12:51:30 -0500 (CDT) From: Brian Ford X-X-Sender: ford AT eos To: Takeshi Honda cc: cygwin AT cygwin DOT com Subject: Re: Can't link to winsock2 library In-Reply-To: <20031024174737.77532.qmail@web302.mail.yahoo.co.jp> Message-ID: References: <20031024174737 DOT 77532 DOT qmail AT web302 DOT mail DOT yahoo DOT co DOT jp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 25 Oct 2003, Takeshi Honda wrote: > What can I do for this problem? > Please let me know. > > ext>>gcc -Os -I /usr/local/lib/ruby/1.6/i386-cygwin -I. > -I/usr/local/lib/ruby/1.8/i386-cygwin > -I/usr/local/lib/ruby/1.8/i386-cygwin -I. > -I/usr/local/cygwin-local/include -c Sniff.cpp -lws2_32 > -lm -lstdc++ > gcc: -lws2_32: linker input file unused because linking > not done > gcc: -lm: linker input file unused because linking not > done > gcc: -lstdc++: linker input file unused because linking > not done > The -c option means compile just a .o file. Libraries are only used during the final link. Remove the -c, and you'll probably want a -o to specify the output file name. Your include path looks weird. Two versions of ruby? -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/