Sign in to follow this  
  • entries
    56
  • comments
    80
  • views
    41614

Linker errors

Sign in to follow this  
bladerunner627

213 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.
Sign in to follow this  


5 Comments


Recommended Comments

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

Share this comment


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.

Share this comment


Link to comment

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

Sign in

Already have an account? Sign in here.

Sign In Now