This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: Libraries not working


Mumit Khan wrote:

> DJ Delorie <dj@delorie.com> writes:
> >
> > > [bin]# ./i586-mingw32-nm /usr/win32/lib/libIMG.a | grep IMG_Load_RW
> > > ./i586-mingw32-nm: IMG.c: File format not recognized
> >
> > One thing to note - you should put *.o in the archives, not *.c
>
> Duh, thanks. My brain automatically translated that to .o when I saw
> the .c. That obviously changes everything.
>
> Regards,
> Mumit

Yeah, i feel dumb now :) I had just copy and pasted the c filenames
directory listing into the Makefile. I changed what I thought to be all of
them over to .o.  .c looks alot like .o with the wrong font. Especially
since like Mumit says your brain just automatically translates it to what
it is supposed to be.

Now if I could just find out how to make WinMain be declared without
breaking compatibility with other platforms.  Can I just do somthing like
the following?

WinMain(void)
{
main();
}

I know nothing about windows programming so if this is a stupid question I
apologize.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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