discuss-gnustep
[Top][All Lists]
Advanced

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

GNUstep and Objective-C++


From: Mike Simmons
Subject: GNUstep and Objective-C++
Date: Mon, 4 May 2009 08:38:04 -0700 (PDT)

Hello,

I cannot seem to get Objective-C++ to compile properly with GNUstep. Here's the 
background.

First I successfully installed the core GNUstep components. Then, following the 
"getting started" tutorial, I created a source file called source.m, as below:
---------------------
#import <Foundation/Foundation.h>

int
main (void)
{ 
  NSLog (@"Executing");
  return 0;
}
---------------------

Using the example makefile (below), I compiled the program and ran it with no 
problem:
---------------------
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = LogTest
LogTest_OBJC_FILES = source.m
include $(GNUSTEP_MAKEFILES)/tool.make
---------------------

I then changed the name of the source file to source.mm, and changed a line in 
the make file as below:
---------------------
LogTest_OBJCC_FILES = source.mm
---------------------

The make fails. I've tried naming source.mm as source.m and source.cpp but that 
does not work either. I get the following error information:
---------------------
Making all for tool LogTest...
 Compiling file source.mm ...
g++: source.mm: linker input file unused because linking not done
 Linking tool LogTest ...
g++: ./obj/source.mm.o: No such file or directory
make[1]: *** [obj/LogTest] Error 1
make: *** [LogTest.all.tool.variables] Error 2
---------------------

Any help would be most appreciated -- I really need to use Objective-C++ with 
GNUstep!

Thanks,
Mike


      




reply via email to

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