[ ghc-Bugs-474797 ] Include Files Not C++-Friendly

noreply@sourceforge.net noreply@sourceforge.net
Mon, 29 Oct 2001 04:25:59 -0800


Bugs item #474797, was opened at 2001-10-25 02:12
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=474797&group_id=8032

Category: Compiler (FFI)
Group: 5.02
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Ashley Yakeley (ashley-y)
>Assigned to: Simon Marlow (simonmar)
Summary: Include Files Not C++-Friendly

Initial Comment:
The include files for Rts etc. are not C++-friendly. 

Found:
Functions won't link correctly from C++, because C++ mangles the names.

Expected:
Function declarations should be surrounded by extern "C" guards:

#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif


----------------------------------------------------------------------

>Comment By: Simon Marlow (simonmar)
Date: 2001-10-29 04:25

Message:
Logged In: YES 
user_id=48280

Fixed, thanks.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=474797&group_id=8032