[Top][All Lists]

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

Re: Compile C code with C++ compiler

From: Ralf Corsepius
Subject: Re: Compile C code with C++ compiler
Date: 09 Apr 2003 06:43:58 +0200

Am Die, 2003-04-08 um 20.10 schrieb Sebastian Huber:
> Hi,
> does someone now how to force Automake to compile C code with a C++ compiler, 
> e.g. g++?

automake applies suffix-rules

Therefore, standard ways to force compilation of C files with a C++
compiler would be to
* apply "configure CC=g++" 
* Convert your C-code to C++ (Change the suffix of your files).
* Implement individual compilation rules for these files.

> I cannot use CC=g++.
Why not? IMO, this indicates major bugs in your code.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]