c++, new() error
Chris Johns
cjohns at cybertec.com.au
Wed Aug 27 00:51:28 UTC 2003
Francesco Poletti 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?
>
The new operator works for me on a Coldfire target.
I use g++ to compile and link my application. What do you use ?
--
Chris Johns, cjohns at cybertec . com . au
More information about the users
mailing list