public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
To: Alexander Lazic <al-cygwin@none.at>, Cygwin List <cygwin@cygwin.com>
Subject: Re: Help to link a prog static with libcurl, libssl and libcrypto.
Date: Tue, 26 Feb 2002 16:40:00 -0000	[thread overview]
Message-ID: <4.3.1.2.20020226192743.01688fe0@pop.ma.ultranet.com> (raw)
In-Reply-To: <20020226235104.GA1293@none.at>

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/

  reply	other threads:[~2002-02-27  0:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-26 16:22 Alexander Lazic
2002-02-26 16:40 ` Larry Hall (RFK Partners, Inc) [this message]
2002-03-04  7:49 Roth, Kevin P.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.3.1.2.20020226192743.01688fe0@pop.ma.ultranet.com \
    --to=lhall@rfk.com \
    --cc=al-cygwin@none.at \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).