Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

undefined function '__stl_new'

Status
Not open for further replies.

TonyGroves

Programmer
Aug 13, 2003
2,389
IE
I notice that if I #include <fstream> in a particular simple C++Builder 6 VCL program, I get the error "_alloc.h: Call to undefined function '__stl_new'". That doesn't happen in other programs. Is there something I need to do to fix this, like #include something else before <fstream>?

Thanks a lot.
 
I fixed it.

I backed up the project, deleted a few unused files from the directory, and it compiled clean! When out of curiosity I restored the backup, the compile error came back! I deleted the files again, and hey presto, it compiles clean again!

I'm having quite a few strange problems with C++ Builder, but that must be the most bizarre of all. I'm starting to be sorry I ever upgraded from v.4 to 6.

Has anybody else experienced strange things like that?

 
Have you fully patched? There are 4 (I tkink) patches out. You have to install all patches but one since the later ones don't include the earlier ones. Also, there is a update for the linker, too.


James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top