Log in

View Full Version : Mixing C and C++


slowreactor
23-01-2008, 18:26
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
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
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
C++ is a superset of C, not a subset of C. Post your error & warning messages so we can help you.

HTH