bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #17464] Wrap external function declarations in 'extern "C"'


From: Larry Campbell
Subject: [bug #17464] Wrap external function declarations in 'extern "C"'
Date: Fri, 18 Aug 2006 19:06:56 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3

URL:
  <http://savannah.gnu.org/bugs/?17464>

                 Summary: Wrap external function declarations in 'extern "C"'
                 Project: GNUstep
            Submitted by: lcampbel
            Submitted on: Friday 08/18/2006 at 19:06
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

External function declarations in header files should be wrapped inside

    extern "C" {}

so that Objective-C++ code can link to the functions successfully. The
simplest approach would probably be to wrap all Foundation headers between

    #ifdef __cplusplus
    extern "C" {
    #endif

and

    #ifdef __cplusplus
    }
    #endif








    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?17464>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]