summaryrefslogtreecommitdiff
path: root/nuttx/examples
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-04-19 16:52:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-04-19 16:52:56 +0000
commit63d7033ac1bb84f570940e2db79f5ca0f39b1ac6 (patch)
tree975d6e1e9b9d9e14718c62827bc8247507e657a3 /nuttx/examples
parent43935f865a5f23262f107eda1f4be59476397c51 (diff)
downloadpx4-nuttx-63d7033ac1bb84f570940e2db79f5ca0f39b1ac6.tar.gz
px4-nuttx-63d7033ac1bb84f570940e2db79f5ca0f39b1ac6.tar.bz2
px4-nuttx-63d7033ac1bb84f570940e2db79f5ca0f39b1ac6.zip
Need more positive control over C++
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1716 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples')
-rwxr-xr-xnuttx/examples/helloxx/Makefile14
-rwxr-xr-xnuttx/examples/helloxx/main.cxx2
2 files changed, 10 insertions, 6 deletions
diff --git a/nuttx/examples/helloxx/Makefile b/nuttx/examples/helloxx/Makefile
index 40c9d6546..7210ea2f1 100755
--- a/nuttx/examples/helloxx/Makefile
+++ b/nuttx/examples/helloxx/Makefile
@@ -1,5 +1,5 @@
############################################################################
-# examples/hello/Makefile
+# examples/helloxx/Makefile
#
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -52,10 +52,14 @@ all: $(BIN)
.PHONY: clean depend chkcxx
chkcxx:
-ifndef CXX
- @echo "In order to use this example, you toolchain must support C++"
- @echo "and CXX, CXXFLAGS, and COMPILEXX must be defined in the Make.defs"
- @echo "file of the configuration that you are using."
+ifneq ($(CONFIG_HAVE_CXX),y)
+ @echo ""
+ @echo "In order to use this example, you toolchain must support must"
+ @echo ""
+ @echo " (1) Explicitly seelct CONFIG_HAVE_CXX to build in C++ support"
+ @echo " (2) Define CXX, CXXFLAGS, and COMPILEXX in the Make.defs file"
+ @echo " of the configuration that you are using."
+ @echo ""
@exit 1
endif
diff --git a/nuttx/examples/helloxx/main.cxx b/nuttx/examples/helloxx/main.cxx
index 7f8230c4a..df84375a2 100755
--- a/nuttx/examples/helloxx/main.cxx
+++ b/nuttx/examples/helloxx/main.cxx
@@ -1,5 +1,5 @@
//***************************************************************************
-// examples/hello/main.c
+// examples/helloxx/main.c
//
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <spudmonkey@racsa.co.cr>