Hi, Nicola,
Ultimately the problem was that I was trying the build on a server
that has a very old version of SUSE Linux and GCC 3.3.3. Now I know
that Objective-C++ is supported only on GCC 4.1 and newer. I'm pushing
hard to get the development server's Suse Linux version upgraded to
the most current release, as well as hundreds of production servers --
not a small task, particularly because the servers are geographically
dispersed.
In the interim I'm developing on SLES 10 running on VMware on my Mac.
Thanks again for the help!
Mike
On May 5, 2009, at 4:18 AM, Nicola Pero wrote:
Hi Mike
I tried following your instructions with gnustep-make from trunk and
everything worked out-of-the-box. :-)
Can you clarify which version of gnustep-make you were using ? What
was the fix that fixed your problem ?
Can you try gnustep-make from subversion trunk and verify that it
all works out-of-the-box for you as well ?
Thanks for your help
On 4 May 2009, at 17:48, Mike Simmons wrote:
Hello,
I cannot seem to get Objective-C++ to compile properly with
GNUstep. Here's the background.
First (of course) 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;
}
---------------------
I then created a makefile using the tutorial's example (below):
---------------------
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = LogTest
LogTest_OBJC_FILES = source.m
include $(GNUSTEP_MAKEFILES)/tool.make
---------------------
The sample program naturally compiled and ran with no problems.
So then I wanted to try the same program as an Objective-C++
program. I simply 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
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep