discuss-gnustep
[Top][All Lists]
Advanced

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

Re: gnustep-make with ObjC++


From: Yen-Ju Chen
Subject: Re: gnustep-make with ObjC++
Date: Fri, 3 Mar 2006 17:28:46 -0800

On 3/3/06, Chris Vetter <chris.vetter@gmail.com> wrote:
> On 2006-03-03 22:58:29 +0100 Yen-Ju Chen <yjchenx@gmail.com> wrote:
> > I tried to compile PopplerKit with GNUmakefile on mac which uses a C
> > wrap around C++ so that the rest can be ObjC. (ObjC -> C -> C++).
> > It compiles fine, but has problem for linking because the C++ code.
> > I tried to use .mm instead of .cc and GNUmake-make complain .mm is
> > not recognized.
> > So what would be the right way to compile ObjC++ with gnustep-make ?
> > Or is it mac-specific problem ?
>
> Did you install GCC from source and ran configure with
> --enable-language=...,objc++ ?

  I use Apple's GCC and Apples runtimes, not GNUstep.
  I only use gnustep-make instead of xcode.
  And xcode works fine for PopplerKit.
  Therefore, the problem should be the internal setting of gnustep-make,
  or I miss something in the GNUmakefile.

  But I  try _OBJCC_FILES (see GNUmakefile below)
  but gnustep-make simply ignore it.
  _OBJC_FILES works file.
  I have gnustep-make 1.11.2 (lastest release).

  Thanx.

  Yen-Ju

GNUmakefile:

include $(GNUSTEP_MAKEFILES)/common.make

CC=${CXX}

APP_NAME = test
test_OBJCC_FILES = \
        main.mm

include $(GNUSTEP_MAKEFILES)/application.make

main.mm:

#include <Foundation/Foundation.h>

int main()
{
  return 0;
}

>
> Try something like
>
> $(APP_NAME)_OBJCC_FILES = foobar.mm
>
> in your GNUmakefile. I'm using gcc42 and it's working fine.
>
> --
> Chris
>
>
>




reply via email to

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