We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1051

Summary: VC++ 2010 Express Link Failed
Product: SDL Reporter: Airlangga <a1rlanggacu>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2 CC: rainerd
Version: HG 2.0   
Hardware: x86   
OS: Windows 7   

Description Airlangga 2010-09-08 12:43:35 UTC
Problem:
-Compile failed with error failed to link to SDL_atan and SDL_atan2 in visual studio 2010 solution.
-Link error for bunch of IME and GetVersion function

Solution:
-Adding file from src/libm/e_atan2.c and src/libm/s_atan.c
-Add library imm32.lib and version.lib to additional link library options

Additional info:
G:\SideProject\sdl_1.3\SDL>hg summary
parent: 4881:0972c2893e68 tip
 Add missing imm32.lib from VS2010 project
branch: default
commit: 1 modified
update: 1 new changesets, 2 branch heads (merge)
Comment 1 Rainer Deyke 2011-01-04 15:39:14 UTC
I'm getting the same errors, but only for release builds.  Debug builds seem unaffected.
Comment 2 Sam Lantinga 2011-02-16 03:54:02 UTC
This should be fixed in the latest snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

Can you check and see if you have any other problems?

Thanks!