This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How Can I Use the FtpCommand Function with Cygwin?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]