So I'm compiling this program from Jazon Yamamoto's book and it requires SDL_TTF, SDL_Mixer and SDL_Image. I added TTF and Image but when I add SDL_mixer.h the Visual Studio compiler goes mental and throws 77 errors and 1 warning. Every error is "unresolved external symbol" and the warning says this:
Warning 1 warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library C:\Users\Jeff\Documents\object_project\objectproject\objectproject\MSVCRTD.lib(cinitexe.obj) objectproject
It tells me to use /nodefaultlib:library but what the heck is that? Do I replace the words "library" or do I input that parameter verbatim? I don't understand how the compiler complains about one thing, then I add what it wants, and it gives 77 warnings. It's so stupid! I have sympathy for people who try programming and give up. The errors make no sense. Before anybody asks, yes I can reproduce this problem over-and-over again. I want to know how to fix it.
I guess this error has something to do with Microsoft's stupidity in making Visual Studio. I think maybe I can kill off msvcrt.lib and there will be no conflict. Should I do it?
Edit: I used /nodefaultlib under "linker > commandline" and now I get 203 errors. Fantastic.
Edit 2: I used /verbose:lib /NODEFAULTLIB:msvcrt.lib and it killed the warning, however I still get 76 errors.