Skip to main content
gamedev.net
🔒 Locked

SDL problems

Started by vaneger Oct 19, 2003 at 1:35 AM 4 replies 650+ views
Original Post
vaneger
vaneger
i downloaded and installed the SDL and lesson 3 from cone3d, but when i try to compile it gives me an MSVCRT.lib unresolved external symbol _main error. how can i fix that?
Greatwolf
Greatwolf
make sure you''re including sdl.lib and sdlmain.lib in your project and also make sure you''re declaring your main like this:

int main(int argc, char *argv[]);





--{You fight like a dairy farmer!}
--{You fight like a dairy farmer!}
Basketball89
Basketball89
I have the same problem. And by the way, where did you find that tutorial.
Jakoozie
emilk
emilk
And additionally, you should make sure to compile with the option "multithreaded dll" turned on in visual studio.
Smacker_626
Smacker_626
cone3d Tutorials are at http://cone3d.gamedev.net/cgi-bin/index.pl

You should read this as well http://www.gamedev.net/reference/programming/features/sdl1/default.asp

[edited by - smacker_626 on October 19, 2003 7:48:57 AM]
vaneger
vaneger
well i did what you guys said, it used to give the unresolved external error but now its fixed and gives this warning

MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library

how do i fix this (or where do i use /NODEFAULTLIB

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.