Menu

#9 linking into C++ program

closed-fixed
nobody
None
5
2005-11-30
2005-07-15
No

I suggest to add standard wrappers to the headers to
make linking normally if used in c++ programs.

#ifdef __cplusplus
extern "C" {
#endif

... h file content ...

#ifdef __cplusplus
}
#endif

Discussion

  • Cedric Le Goater

    • status: open --> open-accepted
     
  • Cedric Le Goater

    Logged In: YES
    user_id=85392

    This is what the __LOG4C_BEGIN_DECLS and __LOG4C_END_DECLS
    macros do.

     
  • Cedric Le Goater

    • status: open-accepted --> open-fixed
     
  • Cedric Le Goater

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.