curl-users
RE: Help required...
Date: Fri, 29 Jun 2001 14:55:02 +0200
Hi!
I'm CC:ing this reply to the Curl mailing list, so even more
people can help, and to make sure that this mail gets archived.
First of all, I am sorry to say that Windows isn't our primary
platform. We lack a lot of support for Windows.
I don't have Borland C++ 5.5, so I can't reproduce your first
problem. However, if you haven't made any changes to the source
code, and just need the executable, you can download it from
ftp://ftp.sunet.se/pub/www/utilities/curl/curl-7.8-win32-nossl.zip
It seems, though, that you have a problem with the swrite() macro.
I can see that your makefile sets the include path to D:/curl/include
but you seem to be building in the C:/curl-7.8 directory. Do these
really contain the same version? If not, try again with the include
path set to C:/curl-7.8/include.
I can also see that you are mentioning c:/curl/lib. Please try to
use the same directory tree for all parts of the build.
About your second problem, I will try to answer your questions:
> 1) Should I compile c:\curl-7.8\lib\ ? to generate libcurl.lib?
Yes.
> If Yes, after this, what to do to run
> c:\curl-7.8\docs\examples\ftpget.c on
> Windows on BCC5.5 or VC6.0
No one seems to have bothered to make a win32 makefile for these examples.
I make a feeble attempt to create a makefile for you, and to adapt the
ftpget.c file for win32 for you. I will send them to you in a separate mail,
to avoid filling up the mailboxes of all the subscribers to the list.
> a) I tried compiling c:\curl-7.8\lib\ as a VC6.0
> project. It generated a curl.dll
> but NOT libcurl.lib!!!! Is it necessary and if Yes,
> then What should I do.?
OK. I didn't try to create a VC6 project (I hate that IDE GUI stuff),
so I ran VCVARS32.BAT (from the VC98/bin directory) and then ran
nmake -f makefile.vc6 to build libcurl.lib. You're not supposed to
build a curl.dll file. Something must be wrong with your VC6 project.
I hope my answers helped you at least a little bit. Please join the
Curl mailing list if you have more questions. Look at
http://curl.haxx.se/mail/subscribe.html to see how to do that.
/Linus
-- Linus Nielsen Feltzing mailto:linus_at_haxx.se > -----Original Message----- > From: Naveen Noel [mailto:naveen_noel_at_yahoo.com] > Sent: den 29 juni 2001 13:11 > To: info_at_haxx.se > Cc: premson_pr_at_yahoo.com > Subject: Help required... > > > Hello everyone, > > I have some peculiar problems with curl. > > Problem 1 > --------- > I have compiled libcurl on Windows using Borland c++ > 5.5 from c:\curl\lib by running Makefile.b32(make -f > Makefile.b32). It was able to compile but produced me > with some "warnings" due to which libcurl.lib was not > properly built , the dump where the warning occured > are given below... > > transfer.c: > Warning W8019 transfer.c 1075: Code has no effect in > function Curl_perform > bcc32 -c -ID:/curl/include;C:/BORLAND/BCC55/include/ > -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch > -w-inl -w-ngu -w-pro -tWM -DLIBCURL_BIGENDIAN=0 > -DNDEBUG -DWIN32 -DCONSOLE -DMBCS escape.c > > telnet.c: > Warning W8019 telnet.c 265: Code has no effect in > function send_negotiation > Warning W8019 telnet.c 827: Code has no effect in > function suboption > Warning W8019 telnet.c 835: Code has no effect in > function suboption > Warning W8019 telnet.c 857: Code has no effect in > function suboption > bcc32 -c -ID:/curl/include;C:/BORLAND/BCC55/include/ > -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch > -w-inl -w-ngu -w-pro -tWM -DLIBCURL_BIGENDIAN=0 > -DNDEBUG -DWIN32 -DCONSOLE -DMBCS getdate.c > > getdate.c: > Warning W8070 getdate.y 706: Function should return a > value in function ToHour > bcc32 -c -ID:/curl/include;C:/BORLAND/BCC55/include/ > -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch > -w-inl -w-ngu -w-pro -tWM -DLIBCURL_BIGENDIAN=0 > -DNDEBUG -DWIN32 -DCONSOLE -DMBCS getenv.c > > Atlast it gave me this Warning > > Warning: public '_curl_formfree' in module 'formdata' > clashes with prior module 'formdata' > > Now as a result of this I am not able to compile > c:\curl-7.8\src to generate curl.exe > The Error it gives when I try to run > c:\curl-7.8\src\Makefile.b32(make -f Makefile.b32) was > > > -------------------------------------------------------------- > -------------------------------------------------------------- > -------------- > MAKE Version 5.2 Copyright (c) 1987, 2000 Borland > bcc32 -lap -ecurl.exe hugehelp.obj writeout.obj > urlglob.obj main.obj D:/curl/lib/libcurl.lib > c:/Borland/BCC55/lib/psdk/wsock32.lib > Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 > Borland > Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 > Borland > Error: Unresolved external '_Curl_strtok_r' referenced > from D:\CURL\LIB\LIBCURL.LIB|cookie > > ** error 1 ** deleting curl.exe > > -------------------------------------------------------------- > -------------------------------------------------------------- > -------------- > > Now, can anyone tell me how to proceed. > > Problem 2 > --------- > > I want to run the examples in > c:\curl-7.8\docs\examples\ftpget.c or any other. > Can anyone tell me as to what is the procedure to run > it. > > 1) Should I compile c:\curl-7.8\lib\ ? to generate > libcurl.lib > If Yes, after this, what to do to run > c:\curl-7.8\docs\examples\ftpget.c on > Windows on BCC5.5 or VC6.0 > > Note : > a) I tried compiling c:\curl-7.8\lib\ as a VC6.0 > project. It generated a curl.dll > but NOT libcurl.lib!!!! Is it necessary and if Yes, > then What should I do.? > > b) In the examples it is given that if we want to run > Curl > on windows we need to do 2 things > -Use the make file (Makefile.example) and compile > the examples. > The Qs are > (i) Is it after building libcurl.lib ? > (ii) The Makefile.example is in Unix format, So, is > there a > windows(BCC5.5 or VC6.0) Makefile.example? > -Use the win32sockets.c file to add the changes to > the examples. > The Qs is > (i) How to do it? Is there any sample Windows Script > for any one > example(ftpget.c) > > Thats all Folks!!! > > Expecting a speedy reply from all of you there.... > > regards, > Naveen.... > > ===== > -------------------------------------------------------------- > --------------------------------------- > FREE INTERNET INCOME Course - ongoing training on how to > create multiple income streams worldwide via the Internet. > Visit http://www.sixfigureincome.com/free/?483694 for more details. > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ >Received on 2001-06-29