Can C call C++ routine?

ITEM: RTA000071643



    A customer is developping some applications. One of his project             
member provide utility routines as library. This utilities are written          
by C++ (xlC) and main program will be developped with C (xlc).                  
Are there some consideration for inter language call bitween C and C++          
when C routine calls C++ routine?                                               
                                                                                
                                                                                
                                                                                
ANSWER                                                                          
    The differences between ANSI C and C++ fall into two categories:            
                                                                                
        1.   Constructs found in C++ but not in ANSI C                          
                                                                                
        2.   Constructs found in both C++ and ANSI C, but treated               
             differently in the two languages                                  
                                                                                
    The following sources have the explicit answer to your question:            
                                                                                
       AIX Version 3.2 for RISC System/6000, XL C User's Guide,                 
       Chapter 8, Interlanguage Calls, page 113, Publication Number             
       SC09-1259-03, Fourth Edition, October 1993.                              
                                                                                
       C++ Language Reference, Appendix A: C and C++ Compatibility,             
       page 303, Publication Number SC09-1606-00.                               
                                                                                
       C++ User's Guide, Chapter 10: Using the C Set ++ for AIX With            
       Other Programming Languages, Publication Number SC09-1605-00.            
                                                                                
S e a r c h - k e y w o r d s:                                                  
C, C++, INTERLANGUAGE CALLS                                                    


WWQA: ITEM: RTA000071643 ITEM: RTA000071643
Dated: 04/1996 Category: ITSAI6000LA
This HTML file was generated 99/06/24~12:43:26
Comments or suggestions? Contact us