[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bontz-team] cygwin sdl
From: |
Owen Swerkstrom |
Subject: |
[Bontz-team] cygwin sdl |
Date: |
Thu, 8 May 2003 08:58:45 -0700 (PDT) |
ack, I'm having terrible luck trying to get this to
build under cygwin. I think my cygwin installation's
messed up in the first place. I've read several
walkthroughs about installing SDL in cygwin, and gone
through all that, but it doesn't seem to work.
Getting SDL_image and SDL_mixer installed is more
mysterious and I haven't found much documentation on
that.
Anyway I'm giving up for the time being on getting it
running under windows; I've got some actual work to
do. But if you figure out how or find a good tutorial
on getting SDL and _image and _mixer going under
windows sometime, I'd be interested to hear about it.
a transcript of my failed build:
$ make
g++ -c -o bontz.o bontz.cpp
g++ -c -o lib/font.o lib/font.cpp
g++ -c -o lib/CSprite.o lib/CSprite.cpp
g++ -c -o lib/CSpriteBase.o lib/CSpriteBase.cpp
g++ -L/usr/local/lib -lmingw32 -lSDLmain -lSDL
-mwindows -mno-cygwin -mno-cygwin
-lSDL_mixer -lpthread -lSDL_image bontz.o lib/font.o
lib/CSprite.o lib/CSprite
Base.o -o bontz
bontz.o(.text+0x36e):bontz.cpp: multiple definition of
`main'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../../i686-pc-mingw32/lib/libmingw32.
a(main.o)(.text+0x0):main.c: first defined here
/usr/local/lib/libSDLmain.a(SDL_main.o.b)(.text+0x39e):
In function `console_mai
n':
/usr/bin/%USERPROFILE%/SDL-1.2.5/src/main/SDL_main.c:227:
undefined reference to
`SDL_main'
bontz.o(.text+0x19):bontz.cpp: undefined reference to
`SDL_RWFromFile'
bontz.o(.text+0x29):bontz.cpp: undefined reference to
`SDL_LoadBMP_RW'
bontz.o(.text+0x37):bontz.cpp: undefined reference to
`SDL_DisplayFormat'
bontz.o(.text+0x45):bontz.cpp: undefined reference to
`SDL_FreeSurface'
bontz.o(.text+0xb7):bontz.cpp: undefined reference to
`SDL_UpperBlit'
bontz.o(.text+0xf3):bontz.cpp: undefined reference to
`SDL_UpperBlit'
bontz.o(.text+0x1e3):bontz.cpp: undefined reference to
`SDL_Flip'
bontz.o(.text+0x4bf):bontz.cpp: undefined reference to
`SDL_SetVideoMode'
bontz.o(.text+0x785):bontz.cpp: undefined reference to
`SDL_ShowCursor'
bontz.o(.text+0x79b):bontz.cpp: undefined reference to
`SDL_GetTicks'
bontz.o(.text+0x7c2):bontz.cpp: undefined reference to
`SDL_PollEvent'
bontz.o(.text+0x814):bontz.cpp: undefined reference to
`SDL_GetTicks'
bontz.o(.text+0x81d):bontz.cpp: undefined reference to
`SDL_GetTicks'
bontz.o(.text+0x834):bontz.cpp: undefined reference to
`SDL_RWFromFile'
bontz.o(.text+0x84f):bontz.cpp: undefined reference to
`SDL_SaveBMP_RW'
bontz.o(.text+0x860):bontz.cpp: undefined reference to
`SDL_GetKeyState'
bontz.o(.text+0x885):bontz.cpp: undefined reference to
`SDL_GetTicks'
bontz.o(.text+0x892):bontz.cpp: undefined reference to
`SDL_GetTicks'
lib/font.o(.text+0x4c):font.cpp: undefined reference
to `SDL_UpperBlit'
lib/font.o(.text+0x3b7):font.cpp: undefined reference
to `SDL_CreateRGBSurfaceFr
om'
lib/font.o(.text+0x3ce):font.cpp: undefined reference
to `SDL_DisplayFormatAlpha
'
lib/font.o(.text+0x3de):font.cpp: undefined reference
to `SDL_FreeSurface'
lib/font.o(.text+0x771):font.cpp: undefined reference
to `SDL_FreeSurface'
lib/CSprite.o(.text+0x44):CSprite.cpp: undefined
reference to `SDL_DisplayFormat
Alpha'
lib/CSprite.o(.text+0xe9):CSprite.cpp: undefined
reference to `SDL_UpperBlit'
lib/CSprite.o(.text+0x188):CSprite.cpp: undefined
reference to `SDL_UpperBlit'
lib/CSprite.o(.text+0x1ca):CSprite.cpp: undefined
reference to `SDL_GetTicks'
lib/CSprite.o(.text+0x210):CSprite.cpp: undefined
reference to `SDL_GetTicks'
lib/CSprite.o(.text+0x29b):CSprite.cpp: undefined
reference to `SDL_UpperBlit'
lib/CSpriteBase.o(.text+0x4e3):CSpriteBase.cpp:
undefined reference to `SDL_Disp
layFormatAlpha'
lib/CSpriteBase.o(.text+0x4f4):CSpriteBase.cpp:
undefined reference to `SDL_Free
Surface'
make: *** [all] Error 1
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
- Re: [Bontz-team] four flopping fishes finished, (continued)
- Re: [Bontz-team] four flopping fishes finished, Chuck, 2003/05/07
- Re: [Bontz-team] four flopping fishes finished, Chuck, 2003/05/07
- Re: [Bontz-team] four flopping fishes finished, Owen Swerkstrom, 2003/05/08
- Re: [Bontz-team] four flopping fishes finished, Chuck, 2003/05/08
- Re: [Bontz-team] four flopping fishes finished, Owen Swerkstrom, 2003/05/08
- Re: [Bontz-team] four flopping fishes finished, Chuck, 2003/05/08
- [Bontz-team] fish monger, Owen Swerkstrom, 2003/05/08
- Re: [Bontz-team] fish monger, Chuck, 2003/05/08
- Re: [Bontz-team] fish monger, Owen Swerkstrom, 2003/05/08
- Re: [Bontz-team] fish monger, Chuck, 2003/05/08
- [Bontz-team] cygwin sdl,
Owen Swerkstrom <=
- Re: [Bontz-team] cygwin sdl, Chuck, 2003/05/23
- Re: [Bontz-team] four flopping fishes finished, Chuck, 2003/05/08
- [Bontz-team] cvs structure, Owen Swerkstrom, 2003/05/08
- Re: [Bontz-team] cvs structure, Chuck, 2003/05/08
- [Bontz-team] two fish updated, Owen Swerkstrom, 2003/05/07
- Re: [Bontz-team] flopping fish, Chuck, 2003/05/07
- Re: [Bontz-team] SDL, Chuck, 2003/05/07
- Re: [Bontz-team] SDL, Chuck, 2003/05/07
Re: [Bontz-team] minigame, Owen Swerkstrom, 2003/05/05