gcc 4.1.1 C++ in Minix3 OS : new and delete problem...
龙海涛
longhaitao@otsc.com.cn
Fri Dec 7 08:21:00 GMT 2007
On Thu, 2007-12-06 at 18:34 +0300, yantux yantux wrote:
> I use gcc 4.1.1 in Minix3 OS
>
> I was wrote question about compiling C++ by gcc 4.1.1 in Minix3.
just tell us what options you use *exactly*
>
> What menas this is error?
> /usr/local/gnu/lib/libfltk.a(Fl_Group.o):Fl_Group.o:(.text+0x780):
> undefined reference to `operator delete[](void*)'
> /usr/local/gnu/lib/libfltk.a(Fl_Group.o):Fl_Group.o:(.text+0xa03):
> undefined reference to `operator new[](unsigned long)'
> /usr/local/gnu/lib/libfltk.a(Fl_arg.o):Fl_arg.o:(.text+0x654):
> undefined reference to `operator new[](unsigned long)'
> /usr/local/gnu/lib/libfltk.a(Fl_arg.o):Fl_arg.o:(.text+0x69f):
> undefined reference to `operator delete[](void*)'
i guess in your project there are some .c and .cpp file,this kind of
problem may happen when you combine them togther. Or maybe when you
compiler a cpp project, you use gcc instead of g++.
just guess.
>
> How correct compile C++ programm? What bad settings and flag in make.sh sript?
could you tell us the *exact* context of make.sh?
>
> Sorry for my english.
> Thank you.
>
> Best regards,
> Yantux.
More information about the Gcc-help
mailing list