Go to Post I'd be more worried about getting struck by lightning right after winning the lottery. :p - evulish [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-09-2010, 03:24 PM
nabioullinr nabioullinr is offline
Registered User
FRC #1073
 
Join Date: Jan 2010
Location: Hollis, NH
Posts: 17
nabioullinr has a spectacular aura aboutnabioullinr has a spectacular aura aboutnabioullinr has a spectacular aura about
Re: Cannot Mix C Code

That only works when the file has the extension .cpp (i.e., is compiled as C++).
Reply With Quote
  #2   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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot deploy code Patrick Chiang FRC Control System 18 03-16-2013 03:46 PM
Cannot Download Code mandalorethx C/C++ 5 01-15-2010 12:44 PM
Cannot get Code to Download to cRIO greekgod8591 C/C++ 25 03-09-2009 10:10 PM
Cannot Download Code to our Robot jcvd C/C++ 9 01-27-2009 01:09 PM


All times are GMT -5. The time now is 10:39 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi