Hi all… I tried to use SDL with mingw32 on a windows 98 platform.
So I am using mingw 2.95.2-1 and as IDE Dev-C++ 4.01.
I added the libSDL.a to the project linker options and the directory of the
SDL-Include files to the project “extra include directorys”. Then I started
a console program.
After that I just typed the following code:
int main (int argc, char * argv[]) {
return 0;
}
What happened was, that I got a linker error:
C:\DEV-C_~1\LIB\libmingw32.a(main.o)(.text+0x8e): undefined reference to
`WinMain at 16’
It does not change if I say do not create a console window…
I added the libSDL.a to the project linker options and the directory of
the
SDL-Include files to the project “extra include directorys”. Then I
started
a console program.
After that I just typed the following code:
int main (int argc, char * argv[]) {
return 0;
}
What happened was, that I got a linker error:
C:\DEV-C_~1\LIB\libmingw32.a(main.o)(.text+0x8e): undefined reference to
`WinMain at 16’
It does not change if I say do not create a console window…
Yes I tried that (adding the libSDLmain.a to the project), but the
linker-error doesn’t care, if I do so or not…
Don’t know what else it could be…
Thanks for the first ideas,
regards,
Sascha
“Oisin Mulvihill” <Oisin.Mulvihill at trintech.com> schrieb im Newsbeitrag
news:…> did you add the libSDLmain.a to the project
as well? This is needed and it usually gives
the error you mentioned if not included.
om
-----Original Message-----
From: Sascha G?nther [mailto:@Sascha_Gunther]
Sent: Monday, January 29, 2001 5:57 AM
To: sdl at lokigames.com
Subject: [SDL] SDL and mingw32 on Windows plattform (no cross-compiling
here)
Hi all… I tried to use SDL with mingw32 on a windows 98 platform.
So I am using mingw 2.95.2-1 and as IDE Dev-C++ 4.01.
I added the libSDL.a to the project linker options and the directory of
the
SDL-Include files to the project “extra include directorys”. Then I
started
a console program.
After that I just typed the following code:
int main (int argc, char * argv[]) {
return 0;
}
What happened was, that I got a linker error:
C:\DEV-C_~1\LIB\libmingw32.a(main.o)(.text+0x8e): undefined reference to
`WinMain at 16’
It does not change if I say do not create a console window…