[SDL] SDL_net dev cpp linker problem
Brian
brian.ripoff at gmail.com
Fri May 4 06:14:13 PDT 2007
IIRC, you need to add 2 additional libraries for main() compatibility.
You don't use WinMain(), but SDL/Windows does.
Your linker settings should look something like this (assuming there
are no other dependencies). The order in which you link is important
(note, this is from memory, so change the order if you are having
trouble). Look in path/to/dev-cpp/lib if it complains that some of
these are missing, in case I misspelled them ( I think SDLmain doesn't
have an underscore, but I could easily be wrong)
-lmingw32
-lSDLmain
-lSDL
-lSDL_net
Cheers,
Brian.
On 5/4/07, Chris Rajula <superrajula at gmail.com> wrote:
> It seems to work now, except for a small problem, but I don't think it's SDL
> related.
> I now get the following [Linker error] undefined reference to `WinMain at 16'
More information about the SDL
mailing list