discuss-gnustep
[Top][All Lists]
Advanced

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

Re: compiling c++ source files


From: Stefan Kleine Stegemann
Subject: Re: compiling c++ source files
Date: Sun, 07 Dec 2003 12:28:00 +0000

Hi,

i have to interface to c++ code and haven't found a way to properly
compile the sources from my GNUmakefile. adding them to
<toolname>_C_FILES doesn't work, because there is no rule to make the
object file.

my current workaround is including the .cpp in a .c file and setting
CC=c++, but i'm sure there is a way to handle this correctly, e.g. by
writing custom rules.
i had the same problem and found out that adding the name of a .cpp
file with .c prefix to xxxx_C_FILES works. However, you still have to set CC=c++
(at least to get the program linked with c++, otherwise the c++ runtime
env is missing in the resulting program/library).

greets
Stefan





reply via email to

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