Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Mixing C and C++ (http://www.chiefdelphi.com/forums/showthread.php?t=62373)

slowreactor 23-01-2008 18:26

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? :confused:

psy_wombats 23-01-2008 18:36

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.

rogerlsmith 23-01-2008 23:38

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?

wireties 24-01-2008 16:37

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


All times are GMT -5. The time now is 23:58.

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