Re: [Vala] undefined reference to 'SDL_Init' and/or 'WinMain 16' (under Windows)



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]