How to make sure it linked with g++ library instead of gcc
Joel Sherrill
joel.sherrill at OARcorp.com
Fri Jun 22 22:51:49 UTC 2012
Didn't I answer this yesterday?
Use make-cxx-exe instead of make-exe in the rule.
"panx at seas.upenn.edu" <panx at seas.upenn.edu> wrote:
>
>Hello,
>
>I have attached the Makefile.
>The following are the error messages:
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:46:35: error: '_U' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:47:32: error: '_L' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:48:32: error: '_U' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:48:37: error: '_L' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:49:32: error: '_N' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:50:33: error: '_X' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:50:38: error: '_N' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:51:32: error: '_S' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:52:32: error: '_P' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:52:37: error: '_U' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:52:42: error: '_L' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:52:47: error: '_N' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:52:52: error: '_B' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:53:32: error: '_P' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:53:37: error: '_U' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:53:42: error: '_L' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:53:47: error: '_N' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:54:32: error: '_C' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:55:32: error: '_P' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:56:32: error: '_U' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:56:37: error: '_L' was not declared in this
>scope
>/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/include/c++/sparc-rtems4.11/bits/ctype_base.h:56:42: error: '_N' was not declared in this
>scope
>
> From the above error message, it seems to have used the gcc library.
>I don't know which part went wrong.
>
>Thank you,
>xiaochen
More information about the devel
mailing list