

vlab@ubuntu:~$ gr_modtool newmod const
\r\n\r\n>>> GRAS: The debug asserts are enabled. <<<
\r\n\r\nCreating out-of-tree module in ./gr-const... Done.
\r\n\r\nUse 'gr_modtool add' to add a new block to this currently empty module.
\r\n\r\nvlab@ubuntu:~$ cd gr-const
\r\n\r\nvlab@ubuntu:~/gr-const$ gr_modtool add constant_c
\r\n\r\n>>> GRAS: The debug asserts are enabled. <<<
\r\n\r\nGNU Radio module name identified: const
\r\n\r\nEnter code type: sync
\r\n\r\nLanguage: C++
\r\n\r\nBlock/code identifier: constant_c
\r\n\r\nEnter valid argument list, including default arguments:
\r\n\r\nAdd Python QA code? [Y/n] n
\r\n\r\nAdd C++ QA code? [Y/n] n
\r\n\r\nAdding file 'constant_c_impl.h'...
\r\n\r\nAdding file 'constant_c_impl.cc'...
\r\n\r\nAdding file 'constant_c.h'...
\r\n\r\nEditing swig/const_swig.i...
\r\n\r\nAdding file 'const_constant_c.xml'...
\r\n\r\nEditing grc/CMakeLists.txt...
\r\n\r\nvlab@ubuntu:~/gr-const$ cd gr-const
\r\n\r\nbash: cd: gr-const: No such file or directory
\r\n\r\nvlab@ubuntu:~/gr-const$ mkdir build
\r\n\r\nvlab@ubuntu:~/gr-const$ cd build
\r\n\r\nvlab@ubuntu:~/gr-const/build$ cmake ../
\r\n\r\n-- The CXX compiler identification is GNU
\r\n\r\n-- The C compiler identification is GNU
\r\n\r\n-- Check for working CXX compiler: /usr/bin/c++
\r\n\r\n-- Check for working CXX compiler: /usr/bin/c++ -- works
\r\n\r\n-- Detecting CXX compiler ABI info
\r\n\r\n-- Detecting CXX compiler ABI info - done
\r\n\r\n-- Check for working C compiler: /usr/bin/gcc
\r\n\r\n-- Check for working C compiler: /usr/bin/gcc -- works
\r\n\r\n-- Detecting C compiler ABI info
\r\n\r\n-- Detecting C compiler ABI info - done
\r\n\r\n-- Build type not specified: defaulting to release.
\r\n\r\n-- Boost version: 1.48.0
\r\n\r\n-- Found the following Boost libraries:
\r\n\r\n-- filesystem
\r\n\r\n-- system
\r\n\r\n-- checking for module 'gruel'
\r\n\r\n-- found gruel, version 3.6.4.2
\r\n\r\n-- Found GRUEL: /usr/local/lib/libgruel.so
\r\n\r\n-- checking for module 'gnuradio-core'
\r\n\r\n-- found gnuradio-core, version 3.6.4.2
\r\n\r\n-- Found GNURADIO_CORE: /usr/local/lib/libgnuradio-core.so
\r\n\r\n-- checking for module 'cppunit'
\r\n\r\n-- found cppunit, version 1.12.1
\r\n\r\n-- Found CPPUNIT: /usr/lib/libcppunit.so;dl
\r\n\r\n-- Found SWIG: /usr/bin/swig2.0 (found version "2.0.4")
\r\n\r\n-- Found PythonLibs: /usr/lib/libpython2.7.so
\r\n\r\n-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
\r\n\r\n-- Found Doxygen: /usr/bin/doxygen
\r\n\r\n-- Configuring done
\r\n\r\n-- Generating done
\r\n\r\n-- Build files have been written to: /home/vlab/gr-const/build
\r\n\r\nvlab@ubuntu:~/gr-const/build$ make
\r\n\r\nScanning dependencies of target gnuradio-const
\r\n\r\n[ 5%] Building CXX object lib/CMakeFiles/gnuradio-const.dir/constant_c_impl.cc.o
\r\n\r\nIn file included from /home/vlab/gr-const/lib/constant_c_impl.h:24:0,
\r\n\r\n from /home/vlab/gr-const/lib/constant_c_impl.cc:26:
\r\n\r\n/home/vlab/gr-const/include/const/constant_c.h:29:13: error: expected identifier before \u2018const\u2019
\r\n\r\n/home/vlab/gr-const/include/const/constant_c.h:29:19: error: expected unqualified-id before \u2018{\u2019 token
\r\n\r\n/home/vlab/gr-const/lib/constant_c_impl.cc:86:1: error: expected \u2018}\u2019 at end of input
\r\n\r\nmake[2]: *** [lib/CMakeFiles/gnuradio-const.dir/constant_c_impl.cc.o] Error 1
\r\n\r\nmake[1]: *** [lib/CMakeFiles/gnuradio-const.dir/all] Error 2
\r\n\r\nmake: *** [all] Error 2
\r\n\r\nvlab@ubuntu:~/gr-const/build$
Sandhi