64-bit JPEG DLL

Has anyone had any luck getting 64-bit version of jpeg.dll working with SDL image? I was building the source with Microsoft Visual Studio 2005 and got it to output a dll, and it couldn’t find a specific function. Something about create_dimensions I think. So I changed the export macro to properly export the functions, and it no longer complains about not finding the function, but now I get the ambiguous “Error loading JPEG” error.

Any ideas?