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

Re: [microblaze-uclinux] user-app: "undefined reference to 'operator new[] (unsigned long)" ??



On Wed, Jun 10, 2009 at 4:39 AM, Dan Miller <dan@xxxxxxxxxx> wrote:
> I'm starting out with a simple one-file c++ utility.  I created a project
> using petalinux-new-app, then replaced ulocate.c with my existing
> ulocate.cpp.  The only change I made to Makefile is
>
> CC=g++

No, g++ is your host compiler.  You need the cross compiler.

Check petalinux-dist/user-apps/cxxtest for sample Makefiles to
cross-compile C++ programs.

Regards,

John
-- 
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/