discuss-gnustep
[Top][All Lists]
Advanced

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

How to compile obj-c and c++ together


From: Lucas Samaruga
Subject: How to compile obj-c and c++ together
Date: Tue, 29 Jun 2010 19:50:28 -0300

Hello

I'm trying to learn the gnustep make file system in osx.
I want to mix obj-c and c++ code, I found some posts in the list and suppose it's possible,
but the problem is that make don't compiles the c++ files (?)
Any help or appointment to a tutorial is appreciated,
I read the manual but ins't a tutorial and I can't find one that covers the system beyond the very basic.

this are the makefile and the terminal output

# GNUmakefile
include $(GNUSTEP_MAKEFILES)/common.make

APP_NAME = PanelTest

PanelTest_OBJCC_FILES = source.mm
PenelTest_CC_FILES = testMake.cc

include $(GNUSTEP_MAKEFILES)/application.make
# end of GNUmakefile


terminal output:

This is gnustep-make 2.4.0. Type 'make print-gnustep-make-help' for help.
Making all for app PanelTest...
 Compiling file source.mm ...
 Linking app PanelTest ...
Undefined symbols:
  "Simple::Simple(int)", referenced from:
      _main in source.mm.o
  "Simple::getNumero()", referenced from:
      _main in source.mm.o
      _main in source.mm.o
  "Simple::setNumero(int)", referenced from:
      _main in source.mm.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [PanelTest.app/Contents/MacOS/PanelTest] Error 1
make[2]: *** [internal-app-run-compile-submake] Error 2
make[1]: *** [PanelTest.all.app.variables] Error 2
make: *** [internal-all] Error 2

Thanks
Lucas


reply via email to

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