Archived

This topic is now archived and is closed to further replies.

Tompa

Which library (.h) contains delete? c/c++

Recommended Posts

No header file (it''s a header file, not a library) defines delete. It''s built into the language. It''s a keyword, not a function.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
Mmm, ok.
My compiler won't recognize it anyway. I use gcc

`delete' undeclared (first use in this function)

Any idea?

EDIT: This is where it gives me error

delete [] g_3DModel.pObject.pFaces;

[edited by - Tompa on October 22, 2003 3:57:46 AM]

Share this post


Link to post
Share on other sites
Well don''t use gcc. Use its g++ name (though either name can be used to compile either language, the g++ name links the right libraries automagically, gcc does not). And make sure that your file is written in C++. There is no such language as "C/C++".

Share this post


Link to post
Share on other sites