discuss-gnustep
[Top][All Lists]
Advanced

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

Re: mixing C++ and Objective C


From: Chris Vetter
Subject: Re: mixing C++ and Objective C
Date: Thu, 07 Sep 2006 15:40:11 +0200

On 2006-09-07 14:49:25 +0200 Marko Riedel <markoriedelde@yahoo.de> wrote:
[...]
I am looking for a beginner's tutorial on building GNUstep projects that
mix C++ and Objective C, preferably with a section on writing
GNUmakefiles. What projects have been written with this combination? I
would like to see some source code to get a feel for how it's done.

Haven't seen one, but you can specifiy

FOOBAR_NAME denotes your (sub)project's name

${FOOBAR_NAME}_C_FILES = $(wildcard *.c)
${FOOBAR_NAME}_CC_FILES = $(wildcard *.cc)
${FOOBAR_NAME}_OBJC_FILES = $(wildcard *.m)
${FOOBAR_NAME}_OBJCC_FILES = $(wildcard *.mm)

If you want to mix C++ with ObjC, or use ObjC++ you will use the latter.

Note that mixing won't work with GCC < 4.x

--
Chris





reply via email to

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