c++, new() error

Joel Sherrill joel.sherrill at OARcorp.com
Tue Aug 26 23:01:19 UTC 2003


Steve Strobel wrote:

> The README.configure file says the following:
> 
> By default, the RTEMS support of C++ is disabled.  It can be enabled
> with the --enable-cxx option. If the rtems++ C++ library is installed
> it will also be build.

That's only the C++ class binding to the Classic API and associated
test.

--joel

> Steve
> 
> 
> At 09:21 PM 8/26/2003 +0200, you wrote:
> 
>>Hy all,
>>
>>I'm trying to see if is possible to use c++ on my board (which I have personally
>>wrtitten for an arm starting by an existing one.)
>>
>>
>>Now I'm able to compile an application which define static object, the only
>>problem is that I can't use new(),  because when I try compile the compiler give
>>to me that error:
>>
>>/scratch/francesco/initialc++/init.cpp:44: undefined reference to `operator
>>new(unsigned long)'
>>/scratch/francesco/initialc++/init.cpp:44: undefined reference to `operator
>>delete(void*)'
>>/scratch/francesco/initialc++/init.cpp:44: undefined reference to `operator
>>delete(void*)'
>>/scratch/francesco/initialc++/init.cpp:51: undefined reference to
>>`__gxx_personality_sj0'
>>
>>Someone know if is possible to have a board which use it? If yes what I need to
>>had in order to have it working?
>>
>>Really thanks to all  Francesco.
> 
> 
> ---
> Steve Strobel                           WWW: http://www.link-comm.com
> Link Communications, Inc.               Phone: (406) 245-5002 ext 102
> MailTo:steve at link-comm.com              Fax: (406) 245-4889
> 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel 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 users mailing list