This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A makefile with a mix of gcc and g++


On 12 April 2011 14:14, Mahmood Naderan wrote:
>
>>If your application is *pure* C then you can't use C++, so I'm not
>>sure what you mean.
>
> I meant that in a pure?.c, I want to?use STL. For example "#include <vector>"
> and use it.

OK, but if you do that, it's not a C file, so calling it "pure C" or a
"pure .c" is just confusing.

It's a C++ file, with the wrong file extension, it's not "pure C"


If you take a bottle of wine and pour sewage in it, it's not pure wine
just because it says "wine" on the label!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]