No subject


Wed Jan 24 21:54:03 PST 2007


showimage.exe: showimage.o argumentvector.o
	$(LINK) $< argumentvector.o -o$@ $(CLIB) /usr/local/lib/libSDL_image.a 
/usr/local/lib/libSDLmain.a /usr/local/lib/libSDL.a /usr/local/lib/libSDL_mixer.
a -lgdi32 -lwinmm -ljpeg -lpng -lz -mno-cygwin -lmingw32 

# I saw this suggested - it didn't work for me
# -e _WinMainCRTStartup

showimage.o: showimage.c argumentvector.h
	$(CC) -x c++ -c -I/usr/local/include/SDL -I../libraries/include -o$@ $< 
-mno-cygwin 



--
NB to make showimage.c happy with -x c++ a cast is needed here:

void draw_background(SDL_Surface *screen)
{
    Uint8 *dst = (Uint8*)screen->pixels;

C/C++ does really matter here.  I only did it to allow me to try both
-lc and -lstdc++ which made no difference.
---


Hopefully someone out there can help answer some of these questions.
I am happy to help on a cygwin porting effort if there is anything useful
I can do.
          Regards,
                  Bruce A.














More information about the SDL mailing list