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

cout ??? and getting c++



Add the following to your makefile

LINK_LIBS += -lstdc++

tsmith at megaroms.co.uk wrote:

> A simple test program using cout compiles sucessfully but fails to link. I built rtems with the --enable-cxx option to the configure script. In make/compilers/gcc-target-default.cfg I found a mention
>
> # Define this to yes if C++ is included in the development environment.
> # This requires that at least the GNU C++ compiler and libg++ be installed.
> ifeq ($(HAS_CPLUSPLUS),yes)
> CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
> endif
>
> Has libg++ been installed to the rtems development directory?
>
> Any help in getting cout to work much appreciated.

--
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page

http://users.hunterlink.net.au/~maaaf/

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)