[SDL] SDL and Devcpp and a lot of trouble
gipsde at gmx.net
gipsde at gmx.net
Mon Mar 31 10:56:00 PST 2003
Hi,
I want to program SDL on windows, but nothing works. My Compiler is
DevC++ 4 and I did everything, I was told to do by several Websites.
I unzipped sdlDevCPP-1.2.4.zip and moved the header files to the
devc++ include directory and added the subdirectory (/include/SDL/) to
the searchpath of devc++. Then I moved the content of the unzipped
/lib to the lib-directory of devc++. Then I added "-lmingw32 -lSDLmain -lSDL"
(w/o the quotes) to "the further linker options" box.
A single compile of test.cpp including a blank int main{} and a
#include <SDL.h> made no problems. But when I insert any SDL-command,
the linker answerd:
######
D:\C\DEVCPP\LIB\\libSDLmain.a(SDL_main.o): In function `console_main':
/home/hercules/release/SDL-1.2.4/src/main/SDL_main.c:227: undefined reference
to `SDL_main'
#####
Hint: I have no "/home/hercules/release/... " directory, neither on Windows,
nor on Linux
Google couldn't help me.
Under Linux everything works fine, but I want to compile my programs
for Windows too.
Thank you
Peter Harding
More information about the SDL
mailing list