[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enable c++
From: |
David Chisnall |
Subject: |
Re: enable c++ |
Date: |
Sun, 15 Sep 2013 13:09:33 +0100 |
On 15 Sep 2013, at 13:00, "Hungwin Chen" <hwchen8778@gmx.com> wrote:
> At the moment my project compilation is done through preprocessor directive,
> e.g.
This sentence doesn't make any sense, so it would help if you could explain
what you mean by it.
> #ifdef __cplusplus
> ...
> #endif
>
> However, most of code are c++, passing command `make CC=/usr/bin/g++` dosn't
> enable gnustep recgonize c++ program. So what parameter should I pass so that
> the compilation can recognize c++ program?
This will tell it to compile C code with g++, which is almost certainly not
what you want. It will use CXX (which hopefully is clang++, but might be g++)
for any [Objective-]C++ code. This is identified by the .cc, .C, or .cpp
extension for C++ or .mm for Objective-C++.
David
-- Sent from my Apple II
- enable c++, Hungwin Chen, 2013/09/15
- Re: enable c++,
David Chisnall <=