| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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 <ford AT vss DOT fsi DOT com> |
| X-X-Sender: | ford AT eos |
| To: | Takeshi Honda <moecho21 AT yahoo DOT co DOT jp> |
| 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: | <Pine.GSO.4.56.0310241249541.823@eos> |
| References: | <20031024174737 DOT 77532 DOT qmail AT web302 DOT mail DOT yahoo DOT co DOT jp> |
| MIME-Version: | 1.0 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |