Re: Is there something like extern "CPP" ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27 May 2014 15:08, Ian Lance Taylor wrote:
> On Tue, May 27, 2014 at 6:58 AM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
>> On 27 May 2014 14:48, Ian Lance Taylor wrote:
>>> On Tue, May 27, 2014 at 2:39 AM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
>>>>
>>>> Then your only option is to rename the files to use an extension that
>>>> GCC recognises as C++, such as .cc, .C, .cpp etc.
>>>
>>> You can use the -x c++ option to tell GCC to compile .c files as C++.
>>
>> But not if "Command lines options are unfortunately not workable for
>> me..." as stated.
>
> Ah, sorry.  (Though, of course, that makes no sense unless the OP
> can't even run a shell script.)

Ah yes, that's true, just put a script called "gcc" at the start of
the $PATH which calls the real gcc with -x c++




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux