Thread
:
Cannot Mix C Code
View Single Post
#
7
09-02-2010, 15:26
jhersh
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
Re: Cannot Mix C Code
Quote:
Originally Posted by
nabioullinr
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".
jhersh
View Public Profile
Find all posts by jhersh
Find CD-Media Photos by jhersh
Find CD-Media Papers by jhersh