delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/14/13:00:02

X-Spam-Check-By: sourceware.org
Message-ID: <43F21B05.4156B89A@dessent.net>
Date: Tue, 14 Feb 2006 10:01:41 -0800
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
CC: cygwin AT cygwin DOT com
Subject: Re: How Can I Use the FtpCommand Function with Cygwin?
References: <F24E92B4B6EF5840AD7C101F6D1BA8DD03F27711 AT cacexc05 DOT americas DOT cpqcorp DOT net>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

"Tischler, Ron" wrote:

> Thanks for your reply, but the makefiles that I'm using do use .lib
> files, and things are following PC rather than unix conventions, and I
> am already getting wininet.lib, because other stuff that is working
> comes from there.  So, I believe the answer is that wininet.lib is just
> out of date on my PC, because FtpCommand is relatively new.  There are
> two approaches that I'm going to try, although I haven't tried either
> yet.

I don't understand why you're trying to fit the square peg in the round
hole then.  If you're using Cygwin, the proper way to link against
wininet is to add "-lwininet" to the link command line.  That's it, you
don't have to mess around with any of this "find the right .lib file"
business.

> One is that I found the same exact question on the web, which you can
> also find by searching for "wininet.lib" and "FtpCommand unresolved
> symbol", and the answer gave instructions for downloading a newer
> version of the "platform SDK".  This person said that his version had
> been from 2003, which wasn't new enough.  (Mine is from 1998.)  So, I
> may try that, although other people who use the same makefiles will then
> all have to update their PC's the same way.

w32api's libwininet.a contains definitions for FtpCommand and all the
other ftp functions.  As I said earlier, trying to grab stuff from the
platform SDK is going to make all kinds of things break.  w32api has
everything you need.

> The other possibility is that I'm going to try looking at the source
> code for ftp on Cygwin.  I think the same functionality that I'm trying
> to implement with FtpCommand had to work in Cygwin's ftp before
> FtpCommand was available, so maybe it will show another way of doing it.

That will not get you anywhere, as the ftp command implements the ftp
protocol itself, it does not use the wininet library.

Brian

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019