[Top][All Lists]

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

Re: Compile C code with C++ compiler

From: Earnie Boyd
Subject: Re: Compile C code with C++ compiler
Date: Wed, 09 Apr 2003 07:45:05 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

Ralf Corsepius wrote:
Am Die, 2003-04-08 um 20.10 schrieb Sebastian Huber:

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.

Shouldn't one use CXX for the C++ makefile variable?


reply via email to

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