I noticed your arguments to main are called argc and args, i've had issues with this before. Apparently SDL is picky about this, try renaming it to argv instead of args. I believe this mismatch...