View Single Post
  #12   Spotlight this post!  
Unread 02-09-2010, 03:26 PM
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Cannot Mix C Code

Quote:
Originally Posted by nabioullinr View Post
That only works when the file has the extension .cpp (i.e., is compiled as C++).
Exactly... so when you are including the C header file in a .cpp file, you include the header as extern "C".
Reply With Quote