error C2733: second C linkage of overloaded function 'longjmp' not allowed - by Rezaul Hoque

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 525087 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/15/2010 12:51:58 AM
Access Restriction Public


We have migrated our project from VS 2008 to VS 2010 Beta 2. I am getting the following error :

Error	2	error C2733: second C linkage of overloaded function 'longjmp' not allowed	C:\Program Files\Microsoft Visual Studio 10.0\VC\include\setjmp.h

I presume this is something to do with the new platform toolset v100, as if I set the platform toolset to v90 then this error goes away. But I want to use the new platform toolset v100.  Any help would be appricated.
Sign in to post a comment.
Posted by Microsoft on 1/18/2010 at 9:45 AM
Hi: this is By-Design: the C++ Language does not allow for overloading of extern "C" function as they would have the same linkage name. I also couldn't find a second, different, definition of longjmp in a more recent set of header files so it may be that this issue has been fixed in the header files since the Beta release.

Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 1/17/2010 at 9:15 PM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(