X-Spam-Check-By: sourceware.org Message-ID: <43F21B05.4156B89A@dessent.net> Date: Tue, 14 Feb 2006 10:01:41 -0800 From: Brian Dessent MIME-Version: 1.0 CC: cygwin AT cygwin DOT com Subject: Re: How Can I Use the FtpCommand Function with Cygwin? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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 "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/