or1k C++ build issue

Joel Sherrill joel.sherrill at oarcorp.com
Tue Sep 30 17:43:39 UTC 2014


Hi

cc'ing Christian in case he has some insight.

Do you see this when you build with C++ enabled?  I don't see this
problem on any other target.

or1k-rtems4.11-g++ -B../../.././lib/ -B../../.././or1ksim/lib/ -specs
bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src-librtems++\"
-DPACKAGE_TARNAME=\"rtems-c-src-librtems++\"
-DPACKAGE_VERSION=\"4.10.99.0\"
-DPACKAGE_STRING=\"rtems-c-src-librtems++\ 4.10.99.0\"
-DPACKAGE_BUGREPORT=\"http://www.rtems.org/bugzilla\" -DPACKAGE_URL=\"\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I.
-I../../../../../rtems/c/src/librtems++  -isystem
../../.././or1ksim/lib/include   -O2 -O0 -g -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
src/librtems___a-rtemsEvent.o -MD -MP -MF
src/.deps/librtems___a-rtemsEvent.Tpo -c -o
src/librtems___a-rtemsEvent.o `test -f 'src/rtemsEvent.cc' || echo
'../../../../../rtems/c/src/librtems++/'`src/rtemsEvent.cc
cc1plus: warning: command line option '-Wmissing-prototypes' is valid
for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit-function-declaration'
is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for
C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wnested-externs' is valid for
C/ObjC but not for C++ [enabled by default]
../../../../../rtems/c/src/librtems++/src/rtemsEvent.cc:73:1: error:
expected '}' at end of input
 }
 ^

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the devel mailing list