View Single Post
Re: compiling .c and .cpp files altogether ?
Old
  (#2)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: compiling .c and .cpp files altogether ? - 13-12-2004

Maybe you have to wrap your C files like this:

Code:
#ifdef cplusplus
    extern "C"
    {
    #endif
    
    //the code
    
    #ifdef cplusplus
     }
     #endif


sfx1999.postcount++
  
Reply With Quote