building c++ samples

Gedare Bloom gedare at gwmail.gwu.edu
Sun Nov 7 16:04:13 UTC 2010


I added --enable-cxx to my configure and now the c++ samples compile.

-Gedare

On Sat, Nov 6, 2010 at 4:40 PM, Gedare Bloom <gedare at gwmail.gwu.edu> wrote:
> Hi,
>
> I'm having a little difficulty in compiling the C++ samples (iostream
> and cdwrite) and thought I might see if I can get any suggestions on
> where I might look.  I am trying to build for QEMU/pc386, just to get
> things working.
>
> I configure with:
> ../rtems/configure --target=i386-rtems4.11 \
>  --enable-rtemsbsp=pc386 \
>  USE_COM1_AS_CONSOLE=1 BSP_PRESS_KEY_FOR_RESET=0
>
> But the iostream and cdwrite samples do not compile properly, the
> Makefile is created, but when the build attempts to compile in those
> directories I get the following output:
>
> iostream$ make
> source='../../../../../../../rtems-diff/c/src/../../testsuites/samples/iostream/init.cc'
> object='init.o' libtool=no \
>        DEPDIR=.deps  /bin/sh
> ../../../../../../../rtems-diff/c/src/../../testsuites/samples/../../depcomp
> \
>        i386-rtems4.11-g++ -B../../../../../pc386/lib/ -specs bsp_specs
> -qrtems -DPACKAGE_NAME=\"rtems-c-src-tests-samples\"
> -DPACKAGE_TARNAME=\"rtems-c-src-tests-samples\"
> -DPACKAGE_VERSION=\"4.10.99.0\"
> -DPACKAGE_STRING=\"rtems-c-src-tests-samples\ 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-diff/c/src/../../testsuites/samples/iostream
>    -mtune=i386 -O2 -g -Wall -Wimplicit-function-declaration
> -Wstrict-prototypes -Wnested-externs -c -o init.o
> ../../../../../../../rtems-diff/c/src/../../testsuites/samples/iostream/init.cc
> depcomp: Variables source, object and depmode must be set
> make: *** [init.o] Error 1
>
>
> Any ideas what I might be missing?
> -Gedare
>




More information about the users mailing list