Thread: Isolating a C++ function/module with C

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    2

    Isolating a C++ function/module with C

    I was wondering if I could get some help. We have some older C applications (compiled via GCC under Linux/Unix) and one of the functions supplied by a third party was recently changed to use multiple C++ class directives that are included into our application via multiple INCLUDE preprocessor statements. At this point it is not practical to rewrite the applications to be C++ compliant.

    Does any one a slick way to isolate the C++ routines so we can compile them with the GCC compiler?

    THANKS!
    Don

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Consider using the extern "C" setup that C++ provides so you can compile the whole thing as C++. Here is more info.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    2
    THANKS quzah! Great reference via link!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. trouble isolating special utf-8 character in string
    By myrddinemrys in forum C Programming
    Replies: 3
    Last Post: 12-30-2007, 02:21 AM
  2. Isolating
    By NoFearXD in forum C++ Programming
    Replies: 2
    Last Post: 07-08-2007, 11:25 PM