Linker errors

Published January 28, 2008
Advertisement
I got some work done on the Linux version of the framework, managed to write texture loading routines and got started on the font loader. I should check the Windows build often because earlier today I got this lovely linker error which makes no sense to me at all:

unresolved 	external 	symbol 	_main 	referenced 	in 	function 	___tmaincrtstartup


Obviously I have main defined, I narrowed the problem down to the header files but I still don't know what the issue is; something with the SDL, OpenGL, Windows headers...either way this error is very annoying. I thought this problem was going to be easy to fix but I managed to stay up until 4AM fiddling with it. I'd post some source but I'm at school, this error makes me feel like a helpless newb ;(.

EDIT:

I fixed the problem, thanks sprite_hound.
Previous Entry Sleep Deprivation
Next Entry Texturing
0 likes 5 comments

Comments

alfith
The answer is probably in the file "VisualC.html" in the SDL folder.
January 28, 2008 08:25 AM
sprite_hound
Linky: http://www.libsdl.org/faq.php?action=listentries&category=7#55

[EDIT: hmm, that's actually a macosx faq page, so it might not actually be what you're looking for. But it's likely the problem is to do with sdl redefining main. Probably what afilth said is more helpful :)]
January 28, 2008 08:54 AM
Ravuya
That sounds like you might also have your project type set wrong. Isn't tmain some kind of MFC dealie?
January 28, 2008 10:22 AM
bladerunner627
Ok, well here's the weirdest thing about this error it's triggered because of some of the headers not any of my project settings because It worked before.
January 28, 2008 11:56 AM
bladerunner627
Quote:Original post by sprite_hound
Linky: http://www.libsdl.org/faq.php?action=listentries&category=7#55

[EDIT: hmm, that's actually a macosx faq page, so it might not actually be what you're looking for. But it's likely the problem is to do with sdl redefining main. Probably what afilth said is more helpful :)]


Ok thanks, I'll check that out.
January 28, 2008 12:00 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

Boo!

1611 views

Group blog

1090 views

Easy Usage

1107 views

Angel Script

968 views

My game idea

984 views

Lightmaps

958 views

Yay BSPs!

958 views
Advertisement