Re: [Vala] undefined reference to 'SDL_Init' and/or 'WinMain 16' (under Windows)
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: Raum no-log org
- Cc: vala-list gnome org
- Subject: Re: [Vala] undefined reference to 'SDL_Init' and/or 'WinMain 16' (under Windows)
- Date: Tue, 20 Mar 2012 09:21:43 +0100
Hello,
2012/3/20 <Raum no-log org>:
Perhaps a basic linkage error but I dont know how to correct :D
You should be looking at the SDL FAQ for Windows:
http://wiki.libsdl.org/moin.cgi/FAQWindows
For example this question seems to be exactly what you want (don't
forget -X before each argument):
I get "Undefined reference to 'WinMain 16'"
Under Visual C++, you need to link with SDLmain.lib. Under the gcc
build environments including Dev-C++, you need to link with the output
of "sdl-config --libs", which is usually: -lmingw32 -lSDLmain -lSDL
-mwindows
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]