• entries
56
80
• views
41901

233 views

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.

The answer is probably in the file "VisualC.html" in the SDL folder.

##### Link to comment

[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 :)]

##### Link to comment
That sounds like you might also have your project type set wrong. Isn't tmain some kind of MFC dealie?

##### Link to comment
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.

##### Link to comment
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.

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account