c++ - Compiling using g++, yet still get undefined references to operator new -



c++ - Compiling using g++, yet still get undefined references to operator new -

i'm compiling using g++, yet when goes compile files in depend file that's in same directory makefile, a

undefined reference `operator new(unsigned int)'

thanks.

edit:

you're right.

how utilize g++ linker instead of ld in context of makefile. been searching couldn't figure out.

the tags of question suggest using ld linking. don’t that; utilize g++ instead. cause c++stdlib static library linked.

c++ g++ ld

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -