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?
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.
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?
C++ is a superset of C, not a subset of C. Post your error & warning messages so we can help you.
HTH