From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mumit Khan To: John Garrison Cc: cygwin@sourceware.cygnus.com Subject: Re: Libraries not working Date: Tue, 06 Jul 1999 19:31:00 -0000 Message-id: <199907070231.VAA01119@mercury.xraylith.wisc.edu> References: <3782874F.F317A97@visi.net> X-SW-Source: 1999-07/msg00116.html John Garrison writes: > Mumit Khan wrote: > > i586-mingw32-nm didn't show anything at all. But here is the source code belo > w > and the command I use to compile it below that. Note I have to use main() > instead of int main(), it has something to do with SDL. SDL will complain if > I use anything else. > > #include "PowerPak/powerdraw.h" > > main(int argc, char *argv[]) > { > /* Initialize the library */ > PD_Init(); > > /* Initialize 640x480x16bpp graphics mode */ > PD_SetGFXMode(640, 480, 16, PD_DEFAULT); > > /* Draw a little cylindrical thingie */ > PD_Ellipse(Screen, 320, 100, 100, 50, PD_CreateColor(Screen, 0xFF, 0x00, > 0x00)); > PD_Ellipse(Screen, 320, 220, 100, 50, PD_CreateColor(Screen, 0xFF, 0x00, > 0x00)); > PD_Ellipse(Screen, 320, 220, 50, 25, PD_CreateColor(Screen, 0xFF, 0x00, > 0x00)); > PD_Ellipse(Screen, 320, 380, 50, 25, PD_CreateColor(Screen, 0xFF, 0x00, > 0x00)); > PD_VLine(Screen, 100, 220, 220, PD_CreateColor(Screen, 0xFF, 0x00, 0x00)); > PD_VLine(Screen, 100, 220, 420, PD_CreateColor(Screen, 0xFF, 0x00, 0x00)); > PD_VLine(Screen, 220, 380, 270, PD_CreateColor(Screen, 0xFF, 0x00, 0x00)); > PD_VLine(Screen, 220, 380, 370, PD_CreateColor(Screen, 0xFF, 0x00, 0x00)); > > /* Wait for 5 seconds so you can see it */ > PD_Wait(5000); > > /* Cleanup */ > PD_Quit(); > } > > and here is the command to gcc. > > /usr/win32/bin/i586-mingw32-gcc ex1.c -lPD -lSDL -lttf -lIMG > -I/usr/win32/include > I really don't know what's going on, and my time is rather limited. If you can get me the sources, I'll take a look. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mumit Khan To: John Garrison Cc: cygwin@sourceware.cygnus.com Subject: Re: Libraries not working Date: Sat, 31 Jul 1999 18:34:00 -0000 Message-ID: <199907070231.VAA01119@mercury.xraylith.wisc.edu> References: <3782874F.F317A97@visi.net> X-SW-Source: 1999-07n/msg00116.html Message-ID: <19990731183400.40fOoiLzqUVPUBxxPs8QDAES1IGcTyW1WA9cCy0Apro@z> John Garrison writes: > Mumit Khan wrote: > > i586-mingw32-nm didn't show anything at all. But here is the source code belo > w > and the command I use to compile it below that. Note I have to use main() > instead of int main(), it has something to do with SDL. SDL will complain if > I use anything else. > > #include "PowerPak/powerdraw.h" > > main(int argc, char *argv[]) > { > /* Initialize the library */ > PD_Init(); > > /* Initialize 640x480x16bpp graphics mode */ > PD_SetGFXMode(640, 480, 16, PD_DEFAULT); > > /* Draw a little cylindrical thingie */ > PD_Ellipse(Screen, 320, 100, 100, 50, PD_CreateColor(Screen, 0xFF, 0x00, > 0x00)); > PD_Ellipse(Screen, 320, 220, 100, 50, PD_CreateColor(Screen, 0xFF, 0x00, > 0x00)); > PD_Ellipse(Screen, 320, 220, 50, 25, PD_CreateColor(Screen, 0xFF, 0x00, > 0x00)); > PD_Ellipse(Screen, 320, 380, 50, 25, PD_CreateColor(Screen, 0xFF, 0x00, > 0x00)); > PD_VLine(Screen, 100, 220, 220, PD_CreateColor(Screen, 0xFF, 0x00, 0x00)); > PD_VLine(Screen, 100, 220, 420, PD_CreateColor(Screen, 0xFF, 0x00, 0x00)); > PD_VLine(Screen, 220, 380, 270, PD_CreateColor(Screen, 0xFF, 0x00, 0x00)); > PD_VLine(Screen, 220, 380, 370, PD_CreateColor(Screen, 0xFF, 0x00, 0x00)); > > /* Wait for 5 seconds so you can see it */ > PD_Wait(5000); > > /* Cleanup */ > PD_Quit(); > } > > and here is the command to gcc. > > /usr/win32/bin/i586-mingw32-gcc ex1.c -lPD -lSDL -lttf -lIMG > -I/usr/win32/include > I really don't know what's going on, and my time is rather limited. If you can get me the sources, I'll take a look. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com