Go to Post Who wants to see your robot get their butt handed to them? - Joe_Widen [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2008, 18:26
slowreactor slowreactor is offline
Registered User
AKA: Chris Song
FRC #0291 (CIA)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Erie, PA
Posts: 2
slowreactor is an unknown quantity at this point
Mixing C and C++

So far, I've tried finding C compilers, with no success whatsoever, so I decided to compile C using C++. However, I've been encountering some problems. Since C++ is a subset of C, I shouldn't be having any problems. Can anyone offer an explanation?
  #2   Spotlight this post!  
Unread 23-01-2008, 18:36
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Mixing C and C++

Well, what problems are you encountering, exactly? And what compiler are you actually using?

You're right, the two should be identical when compiled that way, so it might just be an error in your code, not just a compiler issue. Either way, be more specific.
  #3   Spotlight this post!  
Unread 23-01-2008, 23:38
rogerlsmith's Avatar
rogerlsmith rogerlsmith is offline
Software Engineer
AKA: Roger Smith
FRC #3357 (COMETS)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Grand Rapids, MI
Posts: 214
rogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to behold
Re: Mixing C and C++

C++ is just a more advanced version of C. If offers the ability of making "objects" to do object oriented programming. This is something that I'd guess most teams would not be doing.

Any C++ compiler will be able to compile standard C code without any problems.

Could you post your error messages?
__________________
Roger Smith
Mentor - FRC Team 3357
COMETS - Creating Outstanding Minds, Embracing Technology & Science
---------------------------------------------------------------------------------------

Share FIRST videos, photos and experiences at FIRSTObjective.org
  #4   Spotlight this post!  
Unread 24-01-2008, 16:37
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Mixing C and C++

C++ is a superset of C, not a subset of C. Post your error & warning messages so we can help you.

HTH
Closed Thread


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
pic: SoCal 2006: Beach 'Bot and 968 Mixing It Up Greg Ross Regional Competitions 9 28-03-2006 23:19
Bill of Materials, do it and do it well, and bring it to your event sanddrag Rules/Strategy 3 24-03-2006 21:09
Mixing Joystick Values for mecanum wheels Leav Programming 10 15-01-2006 14:51
pic: Stars and Stripes over Einstein and Galileo CD47-Bot Extra Discussion 6 01-05-2004 00:54


All times are GMT -5. The time now is 18:35.

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