discuss-gnustep
[Top][All Lists]
Advanced

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

Re: gnustep-make with ObjC++


From: Alex Perez
Subject: Re: gnustep-make with ObjC++
Date: Mon, 13 Mar 2006 01:04:35 -0800
User-agent: Thunderbird 1.5 (Windows/20051201)

Nicola, are you listening? This is your domain, and probably a trivial fix. Ten days have elapsed without response, and I am just sending this so it doesn't get buried, since I also think it's important

Thanks in advance,
Alex Perez

Yen-Ju Chen wrote:
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]