Boo Hiss | 1 Aug 2002 04:29
Picon
Favicon

zlib & zip files

for the life of me I cannot figure out this library :P

Frankly, I would kill for a simple demonstration of how
to write a simple function that would, say, just generate
a zip file from any specified file.  It doesn't have to
have a ton of options, I just want to get the general idea
of how this thing works :D

BTW, I have already looked at the Zip and MiniZip programs
source code, and I cannot figure out a bloody thing from
them.

Any help you can provide would be greatly appreciated!
_________________________________________________________________
    http://fastmail.ca/ - Fast Secure Web Email for Canadians
Tim Toohey | 1 Aug 2002 04:45

Asynchronous internet functions

Hi,

I've come across a bit of trouble trying to use asynchronous functions.
A) InternetReadFileEx() not in wininet.h
B) The link step fails because of undefined reference.

A is not too difficult to solve. I put the following in my code:

#include <wininet.h>
#define InternetReadFileEx InternetReadFileExA
extern "C" BOOL InternetReadFileExA( HINTERNET, LPINTERNET_BUFFERS, DWORD, 
DWORD);

That lets compilation take place. I thought it a bit odd that 
InternetReadFileEx() wasn't in wininet.h however. Is there a reason for that?

B has me stumped. When it comes time to link I get "undefined reference to 
`InternetReadFileExA' " link errors.

I'm linking with -lwininet (other wininet functions work fine).

I had a look at the .def files from the win32-api library and it includes both 
InternetReadFileExA <at> 16 and InternetReadFileExW <at> 16.

I did an objdump of the libwininet.a file that I'm linking against, and I see
ds00117.o:     file format pe-i386

SYMBOL TABLE:
[  0](sec  1)(fl 0x00)(ty   0)(scl   3) (nx 0) 0x00000000 .text
[  1](sec  2)(fl 0x00)(ty   0)(scl   3) (nx 0) 0x00000000 .data
(Continue reading)

Danny Smith | 1 Aug 2002 05:21
Picon

Re: Asynchronous internet functions

 --- Tim Toohey <mingw@...> wrote: > Hi,
> 
> I've come across a bit of trouble trying to use asynchronous functions.
> A) InternetReadFileEx() not in wininet.h
> B) The link step fails because of undefined reference.
> 
Thanks for this report.  You've identified specific deficiencies in w32api
which should be fixable.

Danny

http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC!

-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
MinGW-users mailing list
MinGW-users@...

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Danny Smith | 1 Aug 2002 08:35
Picon

Re: Asynchronous internet functions

 --- Tim Toohey <mingw@...> wrote: > Hi,
> 
> I've come across a bit of trouble trying to use asynchronous functions.
> A) InternetReadFileEx() not in wininet.h
> B) The link step fails because of undefined reference.
> 
> A is not too difficult to solve. I put the following in my code:
> 
> #include <wininet.h>
> #define InternetReadFileEx InternetReadFil
> extern "C" BOOL InternetReadFileExA( HINTERNET, LPINTERNET_BUFFERS, DWORD, 
> DWORD);
> 

Almost.  you forget the WINAPI (or __stdcall) attribute.  That's why you got
the link error later...
> 
... here:
> B has me stumped. When it comes time to link I get "undefined reference to 
> `InternetReadFileExA' " link errors.

should be looking for  InternetReadFileExA <at> 16 which _is_ exported
                                          ^^^
I will apply fixes to header in CVS so should be okay in next snapshot. 

Danny

http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC!

(Continue reading)

Salman Khilji | 1 Aug 2002 15:58
I am trying to build binutils from sources.  Yes I do
NEED to build it from sources since I am going to
modify it. I need version 2.11.92 which I downloaded
from the MingW website.

While comping binutils-2.11.92-20011113 from sources I
get the following error when it tries to build the bfd
package.

sed -f ./targmatch.sed < ./config.bfd > targmatch.new
sed: file ./targmatch.sed line 1: Extra characters
after command
make[2]: *** [targmatch.h] Error 1
make[2]: Leaving directory
`/d/binutils_src/binutils-2.11.92-20011113/bfd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/d/binutils_src/binutils-2.11.92-20011113/bfd'
make: *** [all-recursive-am] Error 2

I have the following installed:

gcc-2.95.3-20010828.tar.gz
gettext-0.10.40-20011107.zip
make-3.79.1-20010722.tar.gz
w32api-1.5.tar.gz
mingw-runtime-2.0.tar.gz
binutils-2.11.92-20011113.tar.gz
flex254-ming.tar.bz2 (from the FTP link on MingW site)
bison128-ming.tar.bz2 (from the FTP link on MingW
(Continue reading)

Greg Chicares | 1 Aug 2002 16:17
Salman Khilji wrote:
> 
> sed -f ./targmatch.sed < ./config.bfd > targmatch.new
> sed: file ./targmatch.sed line 1: Extra characters
> after command
> make[2]: *** [targmatch.h] Error 1

If it's just a sed error, maybe you need a different sed.

The one I use was built this way:

Download

  ftp://alpha.gnu.org/pub/gnu/sed/sed-3.02.80.tar.gz

Then, using MSYS:

  $ ./configure
  $ make

That URL suggests it's an alpha release; this URL
  http://www.gnu.org/directory/All_GNU_Packages/sed.html
calls it a beta; but it's been around since
1998-09-06 and works fine for me.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
(Continue reading)

Salman Khilji | 1 Aug 2002 16:22
This link is broken.

> 
> If it's just a sed error, maybe you need a different
> sed.
> 
> The one I use was built this way:
> 
> Download
> 
>   ftp://alpha.gnu.org/pub/gnu/sed/sed-3.02.80.tar.gz
> 

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MinGW-users mailing list
MinGW-users@...

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

(Continue reading)

Henning, Brian | 1 Aug 2002 16:32

nasm

Hello-
I am trying to use nasm with the linker for mingw to compile a simple win32
console application that prints hello world to the screen. For a while i was
trying to make dos system calls in my program instead of windows calls. My
problem is i don't have the asm program written because i really don't know
how to write it. I only know the dos function calls. I was wondering if
someone could help by writing a skelton hello world program and show me how
to use the mingw linker to make the program into a win32 app. thanks,
brian

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MinGW-users mailing list
MinGW-users@...

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Greg Chicares | 1 Aug 2002 16:41
Salman Khilji wrote:
> 
[I had said:]
> >
> >   ftp://alpha.gnu.org/pub/gnu/sed/sed-3.02.80.tar.gz
> 
> This link is broken.

I've reported that to bug-directory@... .

Let me know if you'd like me to email you the
tarball at your yahoo address. It's 352 K.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MinGW-users mailing list
MinGW-users@...

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Earnie Boyd | 1 Aug 2002 17:24
Greg Chicares wrote:
> 
> Salman Khilji wrote:
> >
> > sed -f ./targmatch.sed < ./config.bfd > targmatch.new
> > sed: file ./targmatch.sed line 1: Extra characters
> > after command
> > make[2]: *** [targmatch.h] Error 1
> 
> If it's just a sed error, maybe you need a different sed.
> 
> The one I use was built this way:
> 
> Download
> 
>   ftp://alpha.gnu.org/pub/gnu/sed/sed-3.02.80.tar.gz
> 

No, don't.  MSYS has it's own modified version of sed.

> Then, using MSYS:
> 
>   $ ./configure
>   $ make
> 
> That URL suggests it's an alpha release; this URL
>   http://www.gnu.org/directory/All_GNU_Packages/sed.html
> calls it a beta; but it's been around since
> 1998-09-06 and works fine for me.
> 
(Continue reading)


Gmane