From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8927 invoked by alias); 27 Feb 2002 00:37:02 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 8860 invoked from network); 27 Feb 2002 00:37:00 -0000 Received: from unknown (HELO antiochus-fe0.ultra.net) (146.115.8.188) by sources.redhat.com with SMTP; 27 Feb 2002 00:37:00 -0000 Received: from enterprise-e.rfk.com (216-164-248-40.s3024.apx1.sbo.ma.dialup.rcn.com [216.164.248.40]) by antiochus-fe0.ultra.net (8.8.8/ult/n20340/mtc.v2) with ESMTP id TAA08572; Tue, 26 Feb 2002 19:36:55 -0500 (EST) Message-Id: <4.3.1.2.20020226192743.01688fe0@pop.ma.ultranet.com> X-Sender: lhall@pop.ma.ultranet.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Tue, 26 Feb 2002 16:40:00 -0000 To: Alexander Lazic , Cygwin List From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Help to link a prog static with libcurl, libssl and libcrypto. In-Reply-To: <20020226235104.GA1293@none.at> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2002-02/txt/msg01291.txt.bz2 At 06:51 PM 2/26/2002, Alexander Lazic wrote: >Hi, > >i want to compile the 'simple.c' staticly but i get many errors. > >Progamm: > >C:\cygwin\usr\src\curl-7.9.3-1\docs\examples\simple.c > >I called gcc as follows: > >gcc -v -o simple simple.c `curl-config --cflags` \ >`curl-config --libs` -mno-cygwin -s -static > out.put 2>&1 > >I have attached the out.put file. > >I have found the '-mno-cygwin' in the FAQ >'http://cygwin.com/faq/faq_4.html#SEC94' but not how i can solve these >Problem :-( > > >Thanx al lot of any Hints and tips (Url, Doc, Man, ...). The CURL you're linking against is apparently expecting at least some POSIX APIs. You won't be able to get this to link without some porting. Perhaps CURL builds as a WIN32 version too, in which case you may be able to switch over to that without too much pain. Alternatively, you can try building this without the '-mno-cygwin' flag, although you'll link in cygwin1.dll for sure then. Really though, if you don't want or need any POSIX functionality, you should just use the Mingw toolset (www.mingw.org). Larry Hall lhall@rfk.com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/