Hi!
I am trying to compile and link a small SDL project using cygwin on my
win98 machine. I am running into problems. Compileing works fine, but
when I try to link using the command below:
gcc -o pong *.o -L/lib/mingw -L/home/brasse/lib/SDL-1.2.3/i386
-mingw32msvc/lib -lstlport_cygwin -lmingw32 -lSDLmain -lSDL -mwindows
I get the following error message:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/…/…/…/…/i686-pc-cygwin/bin/ld:
warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000
/home/brasse/lib/SDL-1.2.3/i386-mingw32msvc/lib/libSDLmain.a(SDL_main.o.b):
In function ShowError': /home/hercules/SDL-1.2.3/src/main/SDL_main.c:119: undefined reference to
_imp___iob’
/home/brasse/lib/SDL-1.2.3/i386-mingw32msvc/lib/libSDLmain.a(SDL_main.o.b):
In function cleanup_output': /home/hercules/SDL-1.2.3/src/main/SDL_main.c:139: undefined reference to
_imp___iob’
/home/hercules/SDL-1.2.3/src/main/SDL_main.c:140: undefined reference to
_imp___iob' /home/brasse/lib/SDL-1.2.3/i386-mingw32msvc/lib/libSDLmain.a(SDL_main.o.b): In function
console_main’:
/home/hercules/SDL-1.2.3/src/main/SDL_main.c:227: undefined reference to
SDL_main' /home/brasse/lib/SDL-1.2.3/i386-mingw32msvc/lib/libSDLmain.a(SDL_main.o.b): In function
WinMain’:
/home/hercules/SDL-1.2.3/src/main/SDL_main.c:265: undefined reference to
_imp___iob' /home/hercules/SDL-1.2.3/src/main/SDL_main.c:272: undefined reference to
_imp___iob’
/home/hercules/SDL-1.2.3/src/main/SDL_main.c:276: undefined reference to
_imp___iob' /home/hercules/SDL-1.2.3/src/main/SDL_main.c:283: undefined reference to
_imp___iob’
/home/hercules/SDL-1.2.3/src/main/SDL_main.c:287: undefined reference to
_imp___iob' /home/brasse/lib/SDL-1.2.3/i386-mingw32msvc/lib/libSDLmain.a(SDL_main.o.b):/home/hercules/SDL-1.2.3/src/main/SDL_main.c:288: more undefined references to
_imp___iob’ follow
collect2: ld returned 1 exit status
Does anyone know what these _imp___iob things are?
Any help would be greatly appriciated!
Regards,
Mattias